|
1 | 1 | # terraform-aws-ecs-fargate |
2 | | -Terraform module to create AWS ECS FARGATE services |
| 2 | + |
| 3 | +Terraform module to create AWS ECS FARGATE services. |
3 | 4 |
|
4 | 5 | ## Terraform versions |
5 | 6 |
|
@@ -53,7 +54,53 @@ Module is to be used with Terraform > 0.12. |
53 | 54 |
|
54 | 55 | ## Authors |
55 | 56 |
|
56 | | -Module managed by [Marcin Cuber](https://github.com/marcincuber) [linkedin](https://www.linkedin.com/in/marcincuber/). |
| 57 | +Module managed by [Marcin Cuber](https://github.com/marcincuber) [LinkedIn](https://www.linkedin.com/in/marcincuber/). |
| 58 | + |
| 59 | +<!-- BEGINNING OF PRE-COMMIT-TERRAFORM DOCS HOOK --> |
| 60 | +## Inputs |
| 61 | + |
| 62 | +| Name | Description | Type | Default | Required | |
| 63 | +|------|-------------|:----:|:-----:|:-----:| |
| 64 | +| cluster\_id | The Amazon Resource Name (ARN) that identifies the cluster. | string | n/a | yes | |
| 65 | +| health\_check | A health block containing health check settings for the target group. Overrides the defaults. | map(string) | n/a | yes | |
| 66 | +| lb\_arn | Arn for the LB for which the service should be attach to. | string | n/a | yes | |
| 67 | +| name\_prefix | A prefix used for naming resources. | string | n/a | yes | |
| 68 | +| private\_subnet\_ids | A list of private subnets inside the VPC | list(string) | n/a | yes | |
| 69 | +| task\_container\_image | The image used to start a container. | string | n/a | yes | |
| 70 | +| task\_container\_port | Port that the container exposes. | number | n/a | yes | |
| 71 | +| vpc\_id | The VPC ID. | string | n/a | yes | |
| 72 | +| container\_name | Optional name for the container to be used instead of name_prefix. | string | `""` | no | |
| 73 | +| deployment\_controller\_type | Type of deployment controller. Valid values: CODE_DEPLOY, ECS. | string | `"ECS"` | no | |
| 74 | +| deployment\_maximum\_percent | The upper limit of the number of running tasks that can be running in a service during a deployment | number | `"200"` | no | |
| 75 | +| deployment\_minimum\_healthy\_percent | The lower limit of the number of running tasks that must remain running and healthy in a service during a deployment | number | `"50"` | no | |
| 76 | +| desired\_count | The number of instances of the task definitions to place and keep running. | number | `"1"` | no | |
| 77 | +| health\_check\_grace\_period\_seconds | Seconds to ignore failing load balancer health checks on newly instantiated tasks to prevent premature shutdown, up to 7200. Only valid for services configured to use load balancers. | number | `"300"` | no | |
| 78 | +| log\_retention\_in\_days | Number of days the logs will be retained in CloudWatch. | number | `"30"` | no | |
| 79 | +| repository\_credentials | name or ARN of a secrets manager secret (arn:aws:secretsmanager:region:aws_account_id:secret:secret_name) | string | `""` | no | |
| 80 | +| repository\_credentials\_kms\_key | key id, key ARN, alias name or alias ARN of the key that encrypted the repository credentials | string | `"alias/aws/secretsmanager"` | no | |
| 81 | +| service\_registry\_arn | ARN of aws_service_discovery_service resource | string | `""` | no | |
| 82 | +| tags | A map of tags (key-value pairs) passed to resources. | map(string) | `{}` | no | |
| 83 | +| task\_container\_assign\_public\_ip | Assigned public IP to the container. | bool | `"false"` | no | |
| 84 | +| task\_container\_command | The command that is passed to the container. | list(string) | `[]` | no | |
| 85 | +| task\_container\_environment | The environment variables to pass to a container. | map(string) | `{}` | no | |
| 86 | +| task\_container\_protocol | Protocol that the container exposes. | string | `"HTTP"` | no | |
| 87 | +| task\_definition\_cpu | Amount of CPU to reserve for the task. | number | `"256"` | no | |
| 88 | +| task\_definition\_memory | The soft limit (in MiB) of memory to reserve for the container. | number | `"512"` | no | |
| 89 | + |
| 90 | +## Outputs |
| 91 | + |
| 92 | +| Name | Description | |
| 93 | +|------|-------------| |
| 94 | +| log\_group\_name | The name of the Cloudwatch log group for the task. | |
| 95 | +| service\_arn | The Amazon Resource Name (ARN) that identifies the ECS service. | |
| 96 | +| service\_name | The name of the service. | |
| 97 | +| service\_sg\_id | The Amazon Resource Name (ARN) that identifies the service security group. | |
| 98 | +| target\_group\_arn | The ARN of the Target Group used by Load Balancer. | |
| 99 | +| target\_group\_name | The Name of the Target Group used by Load Balancer. | |
| 100 | +| task\_role\_arn | The Amazon Resource Name (ARN) specifying the ECS service role. | |
| 101 | +| task\_role\_name | The name of the Fargate task service role. | |
| 102 | + |
| 103 | +<!-- END OF PRE-COMMIT-TERRAFORM DOCS HOOK --> |
57 | 104 |
|
58 | 105 | ## License |
59 | 106 |
|
|
0 commit comments