Skip to content

Commit 89b09e6

Browse files
committed
Add Healthcheck to README
1 parent 1283259 commit 89b09e6

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

README.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -427,6 +427,12 @@ task_definition:
427427
cpu_shares: integer
428428
mem_limit: string
429429
mem_reservation: string
430+
healthcheck:
431+
test: string or list of strings
432+
interval: string
433+
timeout: string
434+
retries: integer
435+
start_period: string
430436
docker_volumes:
431437
- name: string
432438
scope: string // Valid values: "shared" | "task"
@@ -441,7 +447,7 @@ run_params:
441447
network_configuration:
442448
awsvpc_configuration:
443449
subnets: array of strings // These should be in the same VPC and Availability Zone as your instance
444-
security_groups: array of strings // These should be in the same VPC as your instance
450+
security_groups: list of strings // These should be in the same VPC as your instance
445451
assign_public_ip: string // supported values: ENABLED or DISABLED
446452
task_placement:
447453
strategy:
@@ -467,6 +473,9 @@ Fields listed under `task_definition` correspond to fields that will be included
467473
* If you are using Docker compose version 3, the `cpu_shares`, `mem_limit`, and `mem_reservation` fields are optional and must be specified in the ECS params file rather than the compose file.
468474
* In Docker compose version 2, the `cpu_shares`, `mem_limit`, and `mem_reservation` fields can be specified in either the compose or ECS params file. If they are specified in the ECS params file, the values will override values present in the compose file.
469475
* If you are using a private repository for pulling images, `repository_credentials` allows you to specify an AWS Secrets Manager secret ARN for the name of the secret containing your private repository credentials as a `credential_parameter`.
476+
* `healthcheck` This parameter maps to `healthcheck` in the [Docker compose file reference](https://docs.docker.com/compose/compose-file/#healthcheck). This field can either be used here in the ECS Params file, or it can be used in Compose File version 3 with the ECS CLI.
477+
* `test` can also be specified as `command` and must be either a string or a list or strings. If `test` is specified as a list of strings, the first item must be either NONE, CMD, or CMD-SHELL. If test or command is specified as a string, CMD-SHELL will be prepended and ECS will run the command in the container's default shell.
478+
* `interval`, `timeout`, and `start_period` are specified as durations in a string format. For example: 2.5s, 10s, 1m30s, 2h23m, or 5h34m56s.
470479

471480
* `docker_volumes` allows you to create docker volumes. The name key is required, and `scope`, `autoprovision`, `driver`, `driver_opts` and `labels` correspond with the fields under [dockerVolumeConfiguration](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/docker-volumes.html) in an ECS Task Definition. Volumes defined with the `docker_volumes` key can be referenced in your compose file by name, even if they were not also specified in the compose file.
472481

0 commit comments

Comments
 (0)