# The manifest for the "my-svc" service. # Read the full specification for the "Load Balanced Web Service" 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: my-svc # The "architecture" of the service you're running. type: Load Balanced Web Service image: # Path to your service's Dockerfile. build: ./Dockerfile # Port exposed through your container to route traffic to it. port: 5000 http: # Requests to this path will be forwarded to your service. # To match all requests you can use the "/" path. path: 'my-svc' # You can specify a custom health check path. The default is "/" # healthcheck: '/' # Number of CPU units for the task. cpu: 256 # Amount of memory in MiB used by the task. memory: 512 # Number of tasks that should be running in your service. count: range: 1-10 cpu_percentage: 70 memory_percentage: 80 # Enable running commands in your container. exec: true network: connect: false taskdef_overrides: - path: "ContainerDefinitions[0].Ulimits[-].Name" value: "cpu" - path: "ContainerDefinitions[0].Ulimits[0].SoftLimit" value: 1024 - path: "ContainerDefinitions[0].Ulimits[0].HardLimit" value: 2048 - path: "ContainerDefinitions[0].PortMappings[-].ContainerPort" value: 2056 - path: "ContainerDefinitions[0].PortMappings[1].Protocol" value: "udp" # 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. # You can override any of the values defined above by environment. # environments: # test: # count: 0 # Number of tasks to run for the "test" environment.