latest--common-definitions
shared| Schema URL | https://catalog.lintel.tools/schemas/schemastore/aws-copilot-manifest/_shared/latest--common-definitions.json |
|---|---|
| Parent schema | aws-copilot-manifest |
Common definitions shared across AWS Copilot manifest schemas https://aws.github.io/copilot-cli/docs/manifest/overview/
Definitions
Duration string (e.g., 30s, 5m, 1h)
Operating system and architecture (formatted as [os]/[arch]) to pass with docker build --platform. For example, linux/arm64 or windows/x86_64. The default is linux/x86_64.
The number of tasks that your service should maintain.
Number of CPU units for the task. See the Amazon ECS docs for valid CPU values.
Amount of memory in MiB used by the task. See the Amazon ECS docs for valid memory values.
Override the default entrypoint in the image.
Override the default command in the image.
Sidecar containers to run alongside the main container.
Build a container from a Dockerfile with optional arguments. Mutually exclusive with image.location.
Instead of building a container from a Dockerfile, you can specify an existing image name. Mutually exclusive with image.build. The location field follows the same definition as the image parameter in the Amazon ECS task definition.
An optional credentials ARN for a private repository. The credentials field follows the same definition as the credentialsParameter in the Amazon ECS task definition.
An optional key/value map of Docker labels to add to the container.
An optional key/value map of Container Dependencies to add to the container. The key of the map is a container name and the value is the condition to depend on. Valid conditions are: start, healthy, complete, and success. You cannot specify a complete or success dependency on an essential container.
The port exposed in your Dockerfile. Copilot should parse this value for you from your EXPOSE instruction.
Optional configuration for container health checks.
5 nested properties
The command to run to determine if the container is healthy. The string array can start with CMD to execute the command arguments directly, or CMD-SHELL to run the command with the container's default shell.
Number of times to retry before container is deemed unhealthy. Default is 2.
The destination that the health check requests are sent to.
The port that the health check requests are sent to. The default is image.port, or the port exposed by http.target_container, if set. If the port exposed is 443, then the health check protocol is automatically set to HTTPS.
The HTTP status codes that healthy targets must use when responding to an HTTP health check. You can specify values between 200 and 499. You can specify multiple values (for example, "200,202") or a range of values (for example, "200-299"). The default is 200.
The number of consecutive health check successes required before considering an unhealthy target healthy. The default is 5. Range: 2-10.
The number of consecutive health check failures required before considering a target unhealthy. The default is 2. Range: 2-10.
Requests to this path will be forwarded to your service. Each listener rule should listen on a unique path.
A sidecar container that requests are routed to instead of the main service container. If the target container's port is set to 443, then the protocol is set to HTTPS so that the load balancer establishes TLS connections with the Fargate tasks using certificates that you install on the target container.
Indicates whether sticky sessions are enabled.
CIDR IP addresses permitted to access your service.
HTTPS domain alias of your service.
ID of your existing hosted zone; can only be used with http.alias and http.additional_rules.alias. If you have an environment with imported certificates, you can specify the hosted zone into which Copilot should insert the A record once the load balancer is created.
Automatically redirect the Application Load Balancer from HTTP to HTTPS. By default it is true.
The HTTP(S) protocol version. Must be one of 'grpc', 'http1', or 'http2'. If omitted, then 'http1' is assumed. If using gRPC, please note that a domain must be associated with your application.
The port that the health check requests are sent to. Specify this if your health check should be performed on a different port than the container target port.
The number of consecutive health check successes required before considering an unhealthy target healthy. The default is 3. Range: 2-10.
The number of consecutive health check failures required before considering a target unhealthy. The default is 3. Range: 2-10.
Required. The additional port and protocol for the Network Load Balancer to listen on.
6 nested properties
The port that the health check requests are sent to. Specify this if your health check should be performed on a different port than the container target port.
The number of consecutive health check successes required before considering an unhealthy target healthy. The default is 3. Range: 2-10.
The number of consecutive health check failures required before considering a target unhealthy. The default is 3. Range: 2-10.
A sidecar container that takes the place of a service container.
The security policy that defines which protocols and ciphers are supported. To learn more, see this doc.
Indicates whether sticky sessions are enabled.
If you want to use Fargate Spot capacity to run your services, you can specify a number under the spot subfield.
Cooldown scaling fields that are used as the default cooldown for all autoscaling fields specified.
Scale up or down based on the average CPU your service should maintain.
Scale up or down based on the average memory your service should maintain.
Scale up or down based on the request count handled per task.
Scale up or down based on the service average response time.
Scale up or down to maintain an acceptable queue latency by tracking against the acceptable backlog per task.
3 nested properties
Rolling deployment strategy. Valid values are 'default' and 'recreate'.
If an alarm is in "In alarm" state at the beginning of a deployment, Amazon ECS will NOT monitor alarms for the duration of that deployment. For more details, read the docs here.
Enable Service Connect for your service, which makes the traffic between services load balanced and more resilient. Defaults to false.
Subnets and security groups attached to your tasks.
2 nested properties
Specify how much ephemeral task storage to provision in GiB. The default value and minimum is 20 GiB. The maximum size is 200 GiB. Sizes above 20 GiB incur additional charges.
Specify true to give your container read-only access to its root file system.
Specify the name and configuration of any EFS volumes you would like to attach.
List of topic objects.
Optional. The number of days to retain the log events. See this page for all accepted values. If omitted, the default is 30.
Optional. The Fluent Bit image to use. Defaults to public.ecr.aws/aws-observability/aws-for-fluent-bit:stable.
Optional. The configuration options to send to the FireLens log driver.
Optional. Whether to include ECS metadata in logs. Defaults to true.
Optional. The secrets to pass to the log configuration.
Optional. The full config file path in your custom Fluent Bit image.
The path to a file from the root of your workspace containing the environment variables to pass to the logging sidecar container. For more information about the environment variable file, see Considerations for specifying environment variable files.
The vendor to use for tracing. Currently, only awsxray is supported.
Required. Path to the Task Definition field to override.
Required. Value of the Task Definition field to override.
The ID of the subnet to import. This field is mutually exclusive with cidr and az.
An IPv4 CIDR block assigned to the subnet. This field is mutually exclusive with id.
The Availability Zone name assigned to the subnet. The az field is optional, by default Availability Zones are assigned in alphabetical order. This field is mutually exclusive with id.
The IP protocol name or number.
The IPv4 address range, in CIDR format.
The port range or number for the security group rule.
1 nested properties
If specified, creates a dead letter queue and a redrive policy which routes messages to the DLQ after tries attempts.
Contains information about which SNS topics the worker service should subscribe to.
5 nested properties
1 nested properties
If specified, creates a dead letter queue and a redrive policy which routes messages to the DLQ after tries attempts.