# The manifest for the "{{.Name}}" service. # Read the full specification for the "{{.Type}}" type at: # https://aws.github.io/copilot-cli/docs/manifest/lb-web-service/ # Your service name will be used in naming your resources like log groups, ECS services, etc. name: {{.Name}} type: {{.Type}} # Distribute traffic to your service. http: {{- if .HTTPOrBool.Main.ProtocolVersion }} version: {{.HTTPOrBool.Main.ProtocolVersion}} {{- end }} # Requests to this path will be forwarded to your service. # To match all requests you can use the "/" path. path: '{{.HTTPOrBool.Main.Path}}' # You can specify a custom health check path. The default is "/". # healthcheck: '{{.HTTPOrBool.Main.HealthCheck.Basic}}' # Configuration for your containers and service. image: {{- if .ImageConfig.Image.Build.BuildArgs.Dockerfile}} # Docker build arguments. For additional overrides: https://aws.github.io/copilot-cli/docs/manifest/lb-web-service/#image-build build: {{.ImageConfig.Image.Build.BuildArgs.Dockerfile}} {{- end}} {{- if .ImageConfig.Image.Location}} location: {{.ImageConfig.Image.Location}} {{- end}} # Port exposed through your container to route traffic to it. port: {{.ImageConfig.Port}} cpu: {{.CPU}} # Number of CPU units for the task. memory: {{.Memory}} # Amount of memory in MiB used by the task. {{- if .Platform.PlatformString}} platform: {{.Platform.PlatformString}} # See https://aws.github.io/copilot-cli/docs/manifest/lb-web-service/#platform {{- end}} count: {{.Count.Value}} # Number of tasks that should be running in your service. {{- if not .TaskConfig.IsWindows}} exec: true # Enable running commands in your container. {{- end}} network: connect: true # Enable Service Connect for intra-environment traffic between services. {{- if not .TaskConfig.IsWindows}} # storage: # readonly_fs: true # Limit to read-only access to mounted root filesystems. {{- end}} # Optional fields for more advanced use-cases. # #variables: # Pass environment variables as key value pairs. # LOG_LEVEL: info #secrets: # Pass secrets from AWS Systems Manager (SSM) Parameter Store. # GITHUB_TOKEN: GITHUB_TOKEN # The key is the name of the environment variable, the value is the name of the SSM parameter. {{- if not .Environments}} # You can override any of the values defined above by environment. #environments: # test: # count: 2 # Number of tasks to run for the "test" environment. # deployment: # The deployment strategy for the "test" environment. # rolling: 'recreate' # Stops existing tasks before new ones are started for faster deployments. {{- else}} # You can override any of the values defined above by environment. environments: {{range $key, $value := .Environments}} {{$key}}: {{- if $value.Network.VPC.Placement.PlacementString}} network: vpc: placement: '{{$value.Network.VPC.Placement.PlacementString}}' # The tasks will be placed on private subnets for the "{{$key}}" environment. {{- end}} {{- end}} # test: # count: 2 # Number of tasks to run for the "test" environment. # deployment: # The deployment strategy for the "test" environment. # rolling: 'recreate' # Stops existing tasks before new ones are started for faster deployments. {{- end}}