# The manifest for the "efs-service" 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: efs-service type: Load Balanced Web Service # Distribute traffic to your service. http: path: '/' healthcheck: success_codes: '200,403' # Configuration for your containers and service. image: location: public.ecr.aws/nginx/nginx:latest # Port exposed through your container to route traffic to it. port: 80 cpu: 256 # Number of CPU units for the task. memory: 512 # Amount of memory in MiB used by the task. count: 2 # Number of tasks that should be running in your service. exec: true # Enable running commands in your container. network: connect: true # Enable Service Connect for intra-environment traffic between services. storage: volumes: web-content: efs: true path: /usr/share/nginx/html read_only: false