Skip to content

Commit be4594a

Browse files
Updated with the [latest changes](https://github.com/gruntwork-io/terraform-aws-ecs/releases/tag/v0.38.7) from the [email protected] source branch. (#2463)
Co-authored-by: docs-sourcer[bot] <99042413+docs-sourcer[bot]@users.noreply.github.com>
1 parent c7e46cf commit be4594a

File tree

9 files changed

+144
-102
lines changed

9 files changed

+144
-102
lines changed

docs/reference/modules/terraform-aws-ecs/ecs-cluster/ecs-cluster.md

+16-16
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,17 @@ import VersionBadge from '../../../../../src/components/VersionBadge.tsx';
99
import { HclListItem, HclListItemDescription, HclListItemTypeDetails, HclListItemDefaultValue, HclGeneralListItem } from '../../../../../src/components/HclListItem.tsx';
1010
import { ModuleUsage } from "../../../../../src/components/ModuleUsage";
1111

12-
<VersionBadge repoTitle="Amazon ECS" version="0.38.6" lastModifiedVersion="0.38.6"/>
12+
<VersionBadge repoTitle="Amazon ECS" version="0.38.7" lastModifiedVersion="0.38.6"/>
1313

1414
# ECS Cluster Module
1515

16-
<a href="https://github.com/gruntwork-io/terraform-aws-ecs/tree/v0.38.6/modules/ecs-cluster" className="link-button" title="View the source code for this module in GitHub.">View Source</a>
16+
<a href="https://github.com/gruntwork-io/terraform-aws-ecs/tree/v0.38.7/modules/ecs-cluster" className="link-button" title="View the source code for this module in GitHub.">View Source</a>
1717

1818
<a href="https://github.com/gruntwork-io/terraform-aws-ecs/releases/tag/v0.38.6" className="link-button" title="Release notes for only versions which impacted this module.">Release Notes</a>
1919

2020
This Terraform Module launches an [EC2 Container Service
2121
Cluster](http://docs.aws.amazon.com/AmazonECS/latest/developerguide/ECS_clusters.html) that you can use to run
22-
Docker containers and services (see the [ecs-service module](https://github.com/gruntwork-io/terraform-aws-ecs/tree/v0.38.6/modules/ecs-service/README.adoc)).
22+
Docker containers and services (see the [ecs-service module](https://github.com/gruntwork-io/terraform-aws-ecs/tree/v0.38.7/modules/ecs-service/README.adoc)).
2323

2424
**WARNING: Launch Configurations:** [Launch configurations](https://docs.aws.amazon.com/autoscaling/ec2/userguide/launch-configurations.html) are being phased out in favor of [Launch Templates](https://docs.aws.amazon.com/autoscaling/ec2/userguide/launch-templates.html). Before upgrading to the latest release please be sure to test and plan any changes to infrastructure that may be impacted. Launch templates are being introduced in [PR #371](https://github.com/gruntwork-io/terraform-aws-ecs/pull/371)
2525

@@ -32,7 +32,7 @@ ECS and register itself as part of the right cluster.
3232

3333
## How do you run Docker containers on the cluster?
3434

35-
See the [service module](https://github.com/gruntwork-io/terraform-aws-ecs/tree/v0.38.6/modules/ecs-service/README.adoc).
35+
See the [service module](https://github.com/gruntwork-io/terraform-aws-ecs/tree/v0.38.7/modules/ecs-service/README.adoc).
3636

3737
## How do you add additional security group rules?
3838

@@ -97,7 +97,7 @@ currently no way in ECS to manage IAM policies on a per-Docker-container basis.
9797

9898
## How do you make changes to the EC2 Instances in the cluster?
9999

100-
To deploy an update to an ECS Service, see the [ecs-service module](https://github.com/gruntwork-io/terraform-aws-ecs/tree/v0.38.6/modules/ecs-service). To deploy an update to the
100+
To deploy an update to an ECS Service, see the [ecs-service module](https://github.com/gruntwork-io/terraform-aws-ecs/tree/v0.38.7/modules/ecs-service). To deploy an update to the
101101
EC2 Instances in your ECS cluster, such as a new AMI, read on.
102102

103103
Terraform and AWS do not provide a way to automatically roll out a change to the Instances in an ECS Cluster. Due to
@@ -127,8 +127,8 @@ To deploy a change such as rolling out a new AMI to all ECS Instances:
127127
python3 roll-out-ecs-cluster-update.py --asg-name ASG_NAME --cluster-name CLUSTER_NAME --aws-region AWS_REGION
128128
```
129129
130-
If you have your output variables configured as shown in [outputs.tf](https://github.com/gruntwork-io/terraform-aws-ecs/tree/v0.38.6/examples/docker-service-with-elb/outputs.tf)
131-
of the [docker-service-with-elb example](https://github.com/gruntwork-io/terraform-aws-ecs/tree/v0.38.6/examples/docker-service-with-elb), you can use the `terraform output`
130+
If you have your output variables configured as shown in [outputs.tf](https://github.com/gruntwork-io/terraform-aws-ecs/tree/v0.38.7/examples/docker-service-with-elb/outputs.tf)
131+
of the [docker-service-with-elb example](https://github.com/gruntwork-io/terraform-aws-ecs/tree/v0.38.7/examples/docker-service-with-elb), you can use the `terraform output`
132132
command to fill in most of the arguments automatically:
133133
134134
```
@@ -181,8 +181,8 @@ To deploy a change such as rolling out a new AMI to all ECS Instances:
181181
python3 asg-instance-refresh.py --asg-name ASG_NAME --aws-region AWS_REGION
182182
```
183183
184-
If you have your output variables configured as shown in [outputs.tf](https://github.com/gruntwork-io/terraform-aws-ecs/tree/v0.38.6/examples/docker-service-with-elb/outputs.tf)
185-
of the [docker-service-with-elb example](https://github.com/gruntwork-io/terraform-aws-ecs/tree/v0.38.6/examples/docker-service-with-elb), you can use the `terraform output`
184+
If you have your output variables configured as shown in [outputs.tf](https://github.com/gruntwork-io/terraform-aws-ecs/tree/v0.38.7/examples/docker-service-with-elb/outputs.tf)
185+
of the [docker-service-with-elb example](https://github.com/gruntwork-io/terraform-aws-ecs/tree/v0.38.7/examples/docker-service-with-elb), you can use the `terraform output`
186186
command to fill in most of the arguments automatically:
187187
188188
```
@@ -235,7 +235,7 @@ enable Capacity Providers on an existing ECS cluster that did not have Capacity
235235
instances to ensure all the instances get associated with the new Capacity Provider.
236236

237237
To rotate the instances, you can run the
238-
[roll-out-ecs-cluster-update.py](https://github.com/gruntwork-io/terraform-aws-ecs/tree/v0.38.6/modules/ecs-cluster/roll-out-ecs-cluster-update.py)
238+
[roll-out-ecs-cluster-update.py](https://github.com/gruntwork-io/terraform-aws-ecs/tree/v0.38.7/modules/ecs-cluster/roll-out-ecs-cluster-update.py)
239239
script in the `terraform-aws-ecs` module. Refer to the
240240
[documentation](#how-do-you-make-changes-to-the-ec2-instances-in-the-cluster)
241241
for more information on the script.
@@ -253,7 +253,7 @@ for more information on the script.
253253
254254
module "ecs_cluster" {
255255
256-
source = "git::[email protected]:gruntwork-io/terraform-aws-ecs.git//modules/ecs-cluster?ref=v0.38.6"
256+
source = "git::[email protected]:gruntwork-io/terraform-aws-ecs.git//modules/ecs-cluster?ref=v0.38.7"
257257
258258
# ----------------------------------------------------------------------------------------------------
259259
# REQUIRED VARIABLES
@@ -542,7 +542,7 @@ module "ecs_cluster" {
542542
# ------------------------------------------------------------------------------------------------------
543543
544544
terraform {
545-
source = "git::[email protected]:gruntwork-io/terraform-aws-ecs.git//modules/ecs-cluster?ref=v0.38.6"
545+
source = "git::[email protected]:gruntwork-io/terraform-aws-ecs.git//modules/ecs-cluster?ref=v0.38.7"
546546
}
547547
548548
inputs = {
@@ -1480,11 +1480,11 @@ Set this variable to true to enable the use of Instance Metadata Service Version
14801480
<!-- ##DOCS-SOURCER-START
14811481
{
14821482
"originalSources": [
1483-
"https://github.com/gruntwork-io/terraform-aws-ecs/tree/v0.38.6/modules/ecs-cluster/readme.md",
1484-
"https://github.com/gruntwork-io/terraform-aws-ecs/tree/v0.38.6/modules/ecs-cluster/variables.tf",
1485-
"https://github.com/gruntwork-io/terraform-aws-ecs/tree/v0.38.6/modules/ecs-cluster/outputs.tf"
1483+
"https://github.com/gruntwork-io/terraform-aws-ecs/tree/v0.38.7/modules/ecs-cluster/readme.md",
1484+
"https://github.com/gruntwork-io/terraform-aws-ecs/tree/v0.38.7/modules/ecs-cluster/variables.tf",
1485+
"https://github.com/gruntwork-io/terraform-aws-ecs/tree/v0.38.7/modules/ecs-cluster/outputs.tf"
14861486
],
14871487
"sourcePlugin": "module-catalog-api",
1488-
"hash": "0cf6c03b8e60bdefb6fc6908b26379ee"
1488+
"hash": "fdc00d45f0d12f69c0504fb5d3a04f7f"
14891489
}
14901490
##DOCS-SOURCER-END -->

docs/reference/modules/terraform-aws-ecs/ecs-daemon-service/ecs-daemon-service.md

+31-10
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@ import VersionBadge from '../../../../../src/components/VersionBadge.tsx';
99
import { HclListItem, HclListItemDescription, HclListItemTypeDetails, HclListItemDefaultValue, HclGeneralListItem } from '../../../../../src/components/HclListItem.tsx';
1010
import { ModuleUsage } from "../../../../../src/components/ModuleUsage";
1111

12-
<VersionBadge repoTitle="Amazon ECS" version="0.38.6" lastModifiedVersion="0.38.1"/>
12+
<VersionBadge repoTitle="Amazon ECS" version="0.38.7" lastModifiedVersion="0.38.7"/>
1313

1414
# ECS Daemon Service Module
1515

16-
<a href="https://github.com/gruntwork-io/terraform-aws-ecs/tree/v0.38.6/modules/ecs-daemon-service" className="link-button" title="View the source code for this module in GitHub.">View Source</a>
16+
<a href="https://github.com/gruntwork-io/terraform-aws-ecs/tree/v0.38.7/modules/ecs-daemon-service" className="link-button" title="View the source code for this module in GitHub.">View Source</a>
1717

18-
<a href="https://github.com/gruntwork-io/terraform-aws-ecs/releases/tag/v0.38.1" className="link-button" title="Release notes for only versions which impacted this module.">Release Notes</a>
18+
<a href="https://github.com/gruntwork-io/terraform-aws-ecs/releases/tag/v0.38.7" className="link-button" title="Release notes for only versions which impacted this module.">Release Notes</a>
1919

2020
This Terraform Module creates an [ECS Daemon Service](http://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs_services.html)
2121
that you can use to deploy exactly one task on each active container instance that meets all of the task placement constraints
@@ -33,7 +33,7 @@ environment variables to set, and so on. To actually run an ECS Task, you define
3333

3434
## How do you create an ECS cluster?
3535

36-
To use ECS, you first deploy one or more EC2 Instances into a "cluster". See the [ecs-cluster module](https://github.com/gruntwork-io/terraform-aws-ecs/tree/v0.38.6/modules/ecs-cluster)
36+
To use ECS, you first deploy one or more EC2 Instances into a "cluster". See the [ecs-cluster module](https://github.com/gruntwork-io/terraform-aws-ecs/tree/v0.38.7/modules/ecs-cluster)
3737
for how to create a cluster.
3838

3939
## How do you add additional IAM policies?
@@ -82,7 +82,7 @@ EOF
8282
8383
module "ecs_daemon_service" {
8484
85-
source = "git::[email protected]:gruntwork-io/terraform-aws-ecs.git//modules/ecs-daemon-service?ref=v0.38.6"
85+
source = "git::[email protected]:gruntwork-io/terraform-aws-ecs.git//modules/ecs-daemon-service?ref=v0.38.7"
8686
8787
# ----------------------------------------------------------------------------------------------------
8888
# REQUIRED VARIABLES
@@ -110,6 +110,12 @@ module "ecs_daemon_service" {
110110
# roles
111111
additional_task_assume_role_policy_principals = []
112112
113+
# ECS automatically redistributes tasks within a service across Availability
114+
# Zones (AZs) to mitigate the risk of impaired application availability due to
115+
# underlying infrastructure failures and task lifecycle activities. The valid
116+
# values are ENABLED and DISABLED. Defaults to DISABLED.
117+
availability_zone_rebalancing = "DISABLED"
118+
113119
# Prefix for name of the IAM role used by the ECS task. If not provide, will
114120
# be set to var.service_name.
115121
custom_iam_role_name_prefix = null
@@ -198,7 +204,7 @@ module "ecs_daemon_service" {
198204
# ------------------------------------------------------------------------------------------------------
199205
200206
terraform {
201-
source = "git::[email protected]:gruntwork-io/terraform-aws-ecs.git//modules/ecs-daemon-service?ref=v0.38.6"
207+
source = "git::[email protected]:gruntwork-io/terraform-aws-ecs.git//modules/ecs-daemon-service?ref=v0.38.7"
202208
}
203209
204210
inputs = {
@@ -229,6 +235,12 @@ inputs = {
229235
# roles
230236
additional_task_assume_role_policy_principals = []
231237
238+
# ECS automatically redistributes tasks within a service across Availability
239+
# Zones (AZs) to mitigate the risk of impaired application availability due to
240+
# underlying infrastructure failures and task lifecycle activities. The valid
241+
# values are ENABLED and DISABLED. Defaults to DISABLED.
242+
availability_zone_rebalancing = "DISABLED"
243+
232244
# Prefix for name of the IAM role used by the ECS task. If not provide, will
233245
# be set to var.service_name.
234246
custom_iam_role_name_prefix = null
@@ -355,6 +367,15 @@ A list of additional principals who can assume the task and task execution roles
355367
<HclListItemDefaultValue defaultValue="[]"/>
356368
</HclListItem>
357369

370+
<HclListItem name="availability_zone_rebalancing" requirement="optional" type="string">
371+
<HclListItemDescription>
372+
373+
ECS automatically redistributes tasks within a service across Availability Zones (AZs) to mitigate the risk of impaired application availability due to underlying infrastructure failures and task lifecycle activities. The valid values are ENABLED and DISABLED. Defaults to DISABLED.
374+
375+
</HclListItemDescription>
376+
<HclListItemDefaultValue defaultValue="&quot;DISABLED&quot;"/>
377+
</HclListItem>
378+
358379
<HclListItem name="custom_iam_role_name_prefix" requirement="optional" type="string">
359380
<HclListItemDescription>
360381

@@ -566,11 +587,11 @@ If true, Terraform will wait for the service to reach a steady state—as in, th
566587
<!-- ##DOCS-SOURCER-START
567588
{
568589
"originalSources": [
569-
"https://github.com/gruntwork-io/terraform-aws-ecs/tree/v0.38.6/modules/ecs-daemon-service/readme.md",
570-
"https://github.com/gruntwork-io/terraform-aws-ecs/tree/v0.38.6/modules/ecs-daemon-service/variables.tf",
571-
"https://github.com/gruntwork-io/terraform-aws-ecs/tree/v0.38.6/modules/ecs-daemon-service/outputs.tf"
590+
"https://github.com/gruntwork-io/terraform-aws-ecs/tree/v0.38.7/modules/ecs-daemon-service/readme.md",
591+
"https://github.com/gruntwork-io/terraform-aws-ecs/tree/v0.38.7/modules/ecs-daemon-service/variables.tf",
592+
"https://github.com/gruntwork-io/terraform-aws-ecs/tree/v0.38.7/modules/ecs-daemon-service/outputs.tf"
572593
],
573594
"sourcePlugin": "module-catalog-api",
574-
"hash": "e820e732fdcc21a5215ba6169b7e6687"
595+
"hash": "0930c2573a2e26402eaaab408ad236c2"
575596
}
576597
##DOCS-SOURCER-END -->

docs/reference/modules/terraform-aws-ecs/ecs-deploy/ecs-deploy.md

+7-7
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ import VersionBadge from '../../../../../src/components/VersionBadge.tsx';
99
import { HclListItem, HclListItemDescription, HclListItemTypeDetails, HclListItemDefaultValue, HclGeneralListItem } from '../../../../../src/components/HclListItem.tsx';
1010
import { ModuleUsage } from "../../../../../src/components/ModuleUsage";
1111

12-
<VersionBadge repoTitle="Amazon ECS" version="0.38.6" lastModifiedVersion="0.37.0"/>
12+
<VersionBadge repoTitle="Amazon ECS" version="0.38.7" lastModifiedVersion="0.37.0"/>
1313

1414
# ECS Deployment Scripts
1515

16-
<a href="https://github.com/gruntwork-io/terraform-aws-ecs/tree/v0.38.6/modules/ecs-deploy" className="link-button" title="View the source code for this module in GitHub.">View Source</a>
16+
<a href="https://github.com/gruntwork-io/terraform-aws-ecs/tree/v0.38.7/modules/ecs-deploy" className="link-button" title="View the source code for this module in GitHub.">View Source</a>
1717

1818
<a href="https://github.com/gruntwork-io/terraform-aws-ecs/releases/tag/v0.37.0" className="link-button" title="Release notes for only versions which impacted this module.">Release Notes</a>
1919

@@ -48,7 +48,7 @@ The `run-ecs-task` script assumes you already have the following:
4848
resource](https://www.terraform.io/docs/providers/aws/r/ecs_task_definition.html). You'll need to know the family
4949
name and revision of the ECS Task Definition you want to run.
5050

51-
Check out the [deploy-ecs-task example](https://github.com/gruntwork-io/terraform-aws-ecs/tree/v0.38.6/examples/deploy-ecs-task) for working sample code of both of the above.
51+
Check out the [deploy-ecs-task example](https://github.com/gruntwork-io/terraform-aws-ecs/tree/v0.38.7/examples/deploy-ecs-task) for working sample code of both of the above.
5252

5353
To run the ECS Task Definition `db-backup` at revision `3` in an ECS Cluster named `ecs-stage` in `us-west-2`, use the
5454
following command:
@@ -95,11 +95,11 @@ container instead of the command configured in the Task Definition.
9595
<!-- ##DOCS-SOURCER-START
9696
{
9797
"originalSources": [
98-
"https://github.com/gruntwork-io/terraform-aws-ecs/tree/v0.38.6/modules/ecs-deploy/readme.md",
99-
"https://github.com/gruntwork-io/terraform-aws-ecs/tree/v0.38.6/modules/ecs-deploy/variables.tf",
100-
"https://github.com/gruntwork-io/terraform-aws-ecs/tree/v0.38.6/modules/ecs-deploy/outputs.tf"
98+
"https://github.com/gruntwork-io/terraform-aws-ecs/tree/v0.38.7/modules/ecs-deploy/readme.md",
99+
"https://github.com/gruntwork-io/terraform-aws-ecs/tree/v0.38.7/modules/ecs-deploy/variables.tf",
100+
"https://github.com/gruntwork-io/terraform-aws-ecs/tree/v0.38.7/modules/ecs-deploy/outputs.tf"
101101
],
102102
"sourcePlugin": "module-catalog-api",
103-
"hash": "d2997477dc45120b3e5bb18beedc50b8"
103+
"hash": "e2e50bf388676d1161484578f4b4706c"
104104
}
105105
##DOCS-SOURCER-END -->

docs/reference/modules/terraform-aws-ecs/ecs-fargate/ecs-fargate.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ import VersionBadge from '../../../../../src/components/VersionBadge.tsx';
99
import { HclListItem, HclListItemDescription, HclListItemTypeDetails, HclListItemDefaultValue, HclGeneralListItem } from '../../../../../src/components/HclListItem.tsx';
1010
import { ModuleUsage } from "../../../../../src/components/ModuleUsage";
1111

12-
<VersionBadge repoTitle="Amazon ECS" version="0.38.6" lastModifiedVersion="0.24.1"/>
12+
<VersionBadge repoTitle="Amazon ECS" version="0.38.7" lastModifiedVersion="0.24.1"/>
1313

1414
# Fargate Module
1515

16-
<a href="https://github.com/gruntwork-io/terraform-aws-ecs/tree/v0.38.6/modules/ecs-fargate" className="link-button" title="View the source code for this module in GitHub.">View Source</a>
16+
<a href="https://github.com/gruntwork-io/terraform-aws-ecs/tree/v0.38.7/modules/ecs-fargate" className="link-button" title="View the source code for this module in GitHub.">View Source</a>
1717

1818
<a href="https://github.com/gruntwork-io/terraform-aws-ecs/releases/tag/v0.24.1" className="link-button" title="Release notes for only versions which impacted this module.">Release Notes</a>
1919

@@ -23,11 +23,11 @@ guide in [the release notes](https://github.com/gruntwork-io/terraform-aws-ecs/r
2323
<!-- ##DOCS-SOURCER-START
2424
{
2525
"originalSources": [
26-
"https://github.com/gruntwork-io/terraform-aws-ecs/tree/v0.38.6/modules/ecs-fargate/readme.md",
27-
"https://github.com/gruntwork-io/terraform-aws-ecs/tree/v0.38.6/modules/ecs-fargate/variables.tf",
28-
"https://github.com/gruntwork-io/terraform-aws-ecs/tree/v0.38.6/modules/ecs-fargate/outputs.tf"
26+
"https://github.com/gruntwork-io/terraform-aws-ecs/tree/v0.38.7/modules/ecs-fargate/readme.md",
27+
"https://github.com/gruntwork-io/terraform-aws-ecs/tree/v0.38.7/modules/ecs-fargate/variables.tf",
28+
"https://github.com/gruntwork-io/terraform-aws-ecs/tree/v0.38.7/modules/ecs-fargate/outputs.tf"
2929
],
3030
"sourcePlugin": "module-catalog-api",
31-
"hash": "63710c30d8aba693078eaf67a3ce4279"
31+
"hash": "dca0e44179ea317005e5f5d6172181ca"
3232
}
3333
##DOCS-SOURCER-END -->

0 commit comments

Comments
 (0)