You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -61,52 +61,66 @@ Module managed by [Marcin Cuber](https://github.com/marcincuber) [LinkedIn](http
61
61
62
62
| Name | Description | Type | Default | Required |
63
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 | The port number on the container that is bound to the user-specified or automatically assigned host port | 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 |
64
+
| cluster\_id | The Amazon Resource Name \(ARN\) that identifies the cluster. | string | n/a | yes |
65
+
| container\_name | Optional name for the container to be used instead of name\_prefix. | string |`""`| no |
66
+
| deployment\_controller\_type | Type of deployment controller. Valid values: CODE\_DEPLOY, ECS. | string |`"ECS"`| no |
74
67
| 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
68
| 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
69
| desired\_count | The number of instances of the task definitions to place and keep running. | number |`"1"`| no |
70
+
| health\_check | A health block containing health check settings for the target group. Overrides the defaults. | map(string) | n/a | yes |
77
71
| 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 |
72
+
| lb\_arn | Arn for the LB for which the service should be attach to. | string | n/a | yes |
73
+
| load\_balanced | Whether the task should be loadbalanced. | bool |`"true"`| no |
78
74
| log\_retention\_in\_days | Number of days the logs will be retained in CloudWatch. | number |`"30"`| no |
79
-
| propogate\_tags | Specifies whether to propagate the tags from the task definition or the service to the tasks. The valid values are SERVICE and TASK_DEFINITION. | string |`"TASK_DEFINITION"`| no |
80
-
| repository\_credentials | name or ARN of a secrets manager secret (arn:aws:secretsmanager:region:aws_account_id:secret:secret_name) | string |`""`| no |
75
+
| logs\_kms\_key | The KMS key ARN to use to encrypt container logs. | string |`""`| no |
76
+
| name\_prefix | A prefix used for naming resources. | string | n/a | yes |
77
+
| private\_subnet\_ids | A list of private subnets inside the VPC | list(string) | n/a | yes |
78
+
| propogate\_tags | Specifies whether to propagate the tags from the task definition or the service to the tasks. The valid values are SERVICE and TASK\_DEFINITION. | string |`"TASK_DEFINITION"`| no |
79
+
| repository\_credentials | name or ARN of a secrets manager secret \(arn:aws:secretsmanager:region:aws\_account\_id:secret:secret\_name\)| string |`""`| no |
81
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 |
82
-
| service\_registry\_arn | ARN of aws_service_discovery_service resource | string |`""`| no |
83
-
| tags | A map of tags (key-value pairs) passed to resources. | map(string) |`{}`| 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
+
| target\_group\_name | The name for the tasks target group | string |`""`| no |
84
84
| task\_container\_assign\_public\_ip | Assigned public IP to the container. | bool |`"false"`| no |
85
85
| task\_container\_command | The command that is passed to the container. | list(string) |`[]`| no |
86
86
| task\_container\_environment | The environment variables to pass to a container. | map(string) |`{}`| no |
87
+
| task\_container\_image | The image used to start a container. | string | n/a | yes |
88
+
| task\_container\_port | The port number on the container that is bound to the user-specified or automatically assigned host port | number | n/a | yes |
87
89
| task\_container\_protocol | Protocol that the container exposes. | string |`"HTTP"`| no |
88
90
| task\_definition\_cpu | Amount of CPU to reserve for the task. | number |`"256"`| no |
89
-
| task\_definition\_memory | The soft limit (in MiB) of memory to reserve for the container. | number |`"512"`| no |
91
+
| task\_definition\_memory | The soft limit \(in MiB\) of memory to reserve for the container. | number |`"512"`| no |
90
92
| task\_host\_port | The port number on the container instance to reserve for your container. | number |`"0"`| no |
91
-
| target\_group\_name | The name for the tasks target group. | string |`""`| no |
92
-
| load\_balanced | Whether the task should be loadbalanced. | bool |`true`| no |
93
-
| logs_kms_key | The KMS key ARN to use to encrypt container logs. | string |`""`| no |
93
+
| vpc\_id | The VPC ID. | string | n/a | yes |
94
94
95
95
## Outputs
96
96
97
97
| Name | Description |
98
98
|------|-------------|
99
99
| log\_group\_name | The name of the Cloudwatch log group for the task. |
100
-
| service\_arn | The Amazon Resource Name (ARN) that identifies the ECS service. |
100
+
| service\_arn | The Amazon Resource Name \(ARN\) that identifies the ECS service. |
101
101
| service\_name | The name of the service. |
102
-
| service\_sg\_id | The Amazon Resource Name (ARN) that identifies the service security group. |
102
+
| service\_sg\_id | The Amazon Resource Name \(ARN\) that identifies the service security group. |
103
103
| target\_group\_arn | The ARN of the Target Group used by Load Balancer. |
104
104
| target\_group\_name | The Name of the Target Group used by Load Balancer. |
105
-
| task\_role\_arn | The Amazon Resource Name (ARN) specifying the ECS service role. |
105
+
| task\_role\_arn | The Amazon Resource Name \(ARN\) specifying the ECS service role. |
106
106
| task\_role\_name | The name of the Fargate task service role. |
107
107
108
108
<!-- END OF PRE-COMMIT-TERRAFORM DOCS HOOK -->
109
109
110
110
## License
111
111
112
112
See LICENSE for full details.
113
+
114
+
## Pre-commit hooks
115
+
116
+
### Install dependencies
117
+
118
+
*[`pre-commit`](https://pre-commit.com/#install)
119
+
*[`terraform-docs`](https://github.com/segmentio/terraform-docs) required for `terraform_docs` hooks.
120
+
*[`TFLint`](https://github.com/terraform-linters/tflint) required for `terraform_tflint` hook.
Copy file name to clipboardExpand all lines: examples/core/README.md
+1-49Lines changed: 1 addition & 49 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,52 +6,4 @@ terraform init
6
6
terraform validate
7
7
terraform plan
8
8
terraform apply --auto-approve
9
-
```
10
-
11
-
<!-- BEGINNING OF PRE-COMMIT-TERRAFORM DOCS HOOK -->
12
-
## Inputs
13
-
14
-
| Name | Description | Type | Default | Required |
15
-
|------|-------------|:----:|:-----:|:-----:|
16
-
| cluster\_id | The Amazon Resource Name (ARN) that identifies the cluster. | string | n/a | yes |
17
-
| health\_check | A health block containing health check settings for the target group. Overrides the defaults. | map(string) | n/a | yes |
18
-
| lb\_arn | Arn for the LB for which the service should be attach to. | string | n/a | yes |
19
-
| name\_prefix | A prefix used for naming resources. | string | n/a | yes |
20
-
| private\_subnet\_ids | A list of private subnets inside the VPC | list(string) | n/a | yes |
21
-
| task\_container\_image | The image used to start a container. | string | n/a | yes |
22
-
| task\_container\_port | The port number on the container that is bound to the user-specified or automatically assigned host port | number | n/a | yes |
23
-
| vpc\_id | The VPC ID. | string | n/a | yes |
24
-
| container\_name | Optional name for the container to be used instead of name_prefix. | string |`""`| no |
25
-
| deployment\_controller\_type | Type of deployment controller. Valid values: CODE_DEPLOY, ECS. | string |`"ECS"`| no |
26
-
| 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 |
27
-
| 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 |
28
-
| desired\_count | The number of instances of the task definitions to place and keep running. | number |`"1"`| no |
29
-
| 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 |
30
-
| log\_retention\_in\_days | Number of days the logs will be retained in CloudWatch. | number |`"30"`| no |
31
-
| propogate\_tags | Specifies whether to propagate the tags from the task definition or the service to the tasks. The valid values are SERVICE and TASK_DEFINITION. | string |`"TASK_DEFINITION"`| no |
32
-
| repository\_credentials | name or ARN of a secrets manager secret (arn:aws:secretsmanager:region:aws_account_id:secret:secret_name) | string |`""`| no |
33
-
| 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 |
34
-
| service\_registry\_arn | ARN of aws_service_discovery_service resource | string |`""`| no |
35
-
| tags | A map of tags (key-value pairs) passed to resources. | map(string) |`{}`| no |
36
-
| task\_container\_assign\_public\_ip | Assigned public IP to the container. | bool |`"false"`| no |
37
-
| task\_container\_command | The command that is passed to the container. | list(string) |`[]`| no |
38
-
| task\_container\_environment | The environment variables to pass to a container. | map(string) |`{}`| no |
39
-
| task\_container\_protocol | Protocol that the container exposes. | string |`"HTTP"`| no |
40
-
| task\_definition\_cpu | Amount of CPU to reserve for the task. | number |`"256"`| no |
41
-
| task\_definition\_memory | The soft limit (in MiB) of memory to reserve for the container. | number |`"512"`| no |
42
-
| task\_host\_port | The port number on the container instance to reserve for your container. | number |`"0"`| no |
43
-
44
-
## Outputs
45
-
46
-
| Name | Description |
47
-
|------|-------------|
48
-
| log\_group\_name | The name of the Cloudwatch log group for the task. |
49
-
| service\_arn | The Amazon Resource Name (ARN) that identifies the ECS service. |
50
-
| service\_name | The name of the service. |
51
-
| service\_sg\_id | The Amazon Resource Name (ARN) that identifies the service security group. |
52
-
| target\_group\_arn | The ARN of the Target Group used by Load Balancer. |
53
-
| target\_group\_name | The Name of the Target Group used by Load Balancer. |
54
-
| task\_role\_arn | The Amazon Resource Name (ARN) specifying the ECS service role. |
55
-
| task\_role\_name | The name of the Fargate task service role. |
0 commit comments