# The manifest for the "cop301-api" 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: cop301-api type: Load Balanced Web Service # Distribute traffic to your service. http: # Requests to this path will be forwarded to your service. # To match all requests you can use the "/" path. path: "/" # You can specify a custom health check path. The default is "/". healthcheck: "/health" # Configuration for your containers and service. image: # replace this field with the value of $ECR_REPOSITORY_URI location: $ECR_REPOSITORY_URI # Docker build arguments. For additional overrides: https://aws.github.io/copilot-cli/docs/manifest/lb-web-service/#image-build # build: Dockerfile # Port exposed through your container to route traffic to it. port: 8000 platform: linux/arm64 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. # Optional fields for more advanced use-cases. # variables: # Pass environment variables as key value pairs. LOG_LEVEL: info # Deploy /data module to have the lambda URL DATA_API_URL: $DATA_API_URL sidecars: otel_sidecar: image: "public.ecr.aws/aws-observability/aws-otel-collector:latest" secrets: AOT_CONFIG_CONTENT: /copilot/${COPILOT_APPLICATION_NAME}/${COPILOT_ENVIRONMENT_NAME}/secrets/otel_config