Skip to content

Commit 3180a62

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

File tree

9 files changed

+167
-101
lines changed

9 files changed

+167
-101
lines changed

Diff for: docs/reference/modules/terraform-aws-ecs/ecs-cluster/ecs-cluster.md

+83-17
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.8" lastModifiedVersion="0.38.8"/>
12+
<VersionBadge repoTitle="Amazon ECS" version="0.38.9" lastModifiedVersion="0.38.9"/>
1313

1414
# ECS Cluster Module
1515

16-
<a href="https://github.com/gruntwork-io/terraform-aws-ecs/tree/v0.38.8/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.9/modules/ecs-cluster" 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.8" 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.9" 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.8/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.9/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.8/modules/ecs-service/README.adoc).
35+
See the [service module](https://github.com/gruntwork-io/terraform-aws-ecs/tree/v0.38.9/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.8/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.9/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.8/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.8/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.9/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.9/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.8/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.8/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.9/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.9/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.8/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.9/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.8"
256+
source = "git::[email protected]:gruntwork-io/terraform-aws-ecs.git//modules/ecs-cluster?ref=v0.38.9"
257257
258258
# ----------------------------------------------------------------------------------------------------
259259
# REQUIRED VARIABLES
@@ -465,6 +465,20 @@ module "ecs_cluster" {
465465
# The key is the tag name and the value is the tag value.
466466
custom_tags_security_group = {}
467467
468+
# List of CIDR blocks that will be allowed for egress access.
469+
egress_allow_outbound_all = ["0.0.0.0/0"]
470+
471+
# The from port range (paired with egress_to_port) to be used for for egress
472+
# access.
473+
egress_from_port = 0
474+
475+
# The protocol to be used for for egress access.
476+
egress_protocol = "-1"
477+
478+
# The end port range (paired with egress_from_port) to be used for for egress
479+
# access.
480+
egress_to_port = 0
481+
468482
# Enables additional block device mapping. Change to false if you wish to
469483
# disable additional EBS volume attachment to EC2 instances. Defaults to true.
470484
enable_block_device_mappings = true
@@ -545,7 +559,7 @@ module "ecs_cluster" {
545559
# ------------------------------------------------------------------------------------------------------
546560
547561
terraform {
548-
source = "git::[email protected]:gruntwork-io/terraform-aws-ecs.git//modules/ecs-cluster?ref=v0.38.8"
562+
source = "git::[email protected]:gruntwork-io/terraform-aws-ecs.git//modules/ecs-cluster?ref=v0.38.9"
549563
}
550564
551565
inputs = {
@@ -760,6 +774,20 @@ inputs = {
760774
# The key is the tag name and the value is the tag value.
761775
custom_tags_security_group = {}
762776
777+
# List of CIDR blocks that will be allowed for egress access.
778+
egress_allow_outbound_all = ["0.0.0.0/0"]
779+
780+
# The from port range (paired with egress_to_port) to be used for for egress
781+
# access.
782+
egress_from_port = 0
783+
784+
# The protocol to be used for for egress access.
785+
egress_protocol = "-1"
786+
787+
# The end port range (paired with egress_from_port) to be used for for egress
788+
# access.
789+
egress_to_port = 0
790+
763791
# Enables additional block device mapping. Change to false if you wish to
764792
# disable additional EBS volume attachment to EC2 instances. Defaults to true.
765793
enable_block_device_mappings = true
@@ -1306,6 +1334,44 @@ A map of custom tags to apply to the Security Group for this ECS Cluster. The ke
13061334
<HclListItemDefaultValue defaultValue="{}"/>
13071335
</HclListItem>
13081336

1337+
<HclListItem name="egress_allow_outbound_all" requirement="optional" type="list(string)">
1338+
<HclListItemDescription>
1339+
1340+
List of CIDR blocks that will be allowed for egress access.
1341+
1342+
</HclListItemDescription>
1343+
<HclListItemDefaultValue defaultValue="[
1344+
&quot;0.0.0.0/0&quot;
1345+
]"/>
1346+
</HclListItem>
1347+
1348+
<HclListItem name="egress_from_port" requirement="optional" type="number">
1349+
<HclListItemDescription>
1350+
1351+
The from port range (paired with egress_to_port) to be used for for egress access.
1352+
1353+
</HclListItemDescription>
1354+
<HclListItemDefaultValue defaultValue="0"/>
1355+
</HclListItem>
1356+
1357+
<HclListItem name="egress_protocol" requirement="optional" type="string">
1358+
<HclListItemDescription>
1359+
1360+
The protocol to be used for for egress access.
1361+
1362+
</HclListItemDescription>
1363+
<HclListItemDefaultValue defaultValue="&quot;-1&quot;"/>
1364+
</HclListItem>
1365+
1366+
<HclListItem name="egress_to_port" requirement="optional" type="number">
1367+
<HclListItemDescription>
1368+
1369+
The end port range (paired with egress_from_port) to be used for for egress access.
1370+
1371+
</HclListItemDescription>
1372+
<HclListItemDefaultValue defaultValue="0"/>
1373+
</HclListItem>
1374+
13091375
<HclListItem name="enable_block_device_mappings" requirement="optional" type="bool">
13101376
<HclListItemDescription>
13111377

@@ -1495,11 +1561,11 @@ Set this variable to true to enable the use of Instance Metadata Service Version
14951561
<!-- ##DOCS-SOURCER-START
14961562
{
14971563
"originalSources": [
1498-
"https://github.com/gruntwork-io/terraform-aws-ecs/tree/v0.38.8/modules/ecs-cluster/readme.md",
1499-
"https://github.com/gruntwork-io/terraform-aws-ecs/tree/v0.38.8/modules/ecs-cluster/variables.tf",
1500-
"https://github.com/gruntwork-io/terraform-aws-ecs/tree/v0.38.8/modules/ecs-cluster/outputs.tf"
1564+
"https://github.com/gruntwork-io/terraform-aws-ecs/tree/v0.38.9/modules/ecs-cluster/readme.md",
1565+
"https://github.com/gruntwork-io/terraform-aws-ecs/tree/v0.38.9/modules/ecs-cluster/variables.tf",
1566+
"https://github.com/gruntwork-io/terraform-aws-ecs/tree/v0.38.9/modules/ecs-cluster/outputs.tf"
15011567
],
15021568
"sourcePlugin": "module-catalog-api",
1503-
"hash": "2fcc520790e7d2644657c9277e4fcbe4"
1569+
"hash": "869db00a5c732d3ca1f48f9423eb1f9e"
15041570
}
15051571
##DOCS-SOURCER-END -->

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

+9-9
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.8" lastModifiedVersion="0.38.7"/>
12+
<VersionBadge repoTitle="Amazon ECS" version="0.38.9" 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.8/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.9/modules/ecs-daemon-service" 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.7" className="link-button" title="Release notes for only versions which impacted this module.">Release Notes</a>
1919

@@ -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.8/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.9/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.8"
85+
source = "git::[email protected]:gruntwork-io/terraform-aws-ecs.git//modules/ecs-daemon-service?ref=v0.38.9"
8686
8787
# ----------------------------------------------------------------------------------------------------
8888
# REQUIRED VARIABLES
@@ -204,7 +204,7 @@ module "ecs_daemon_service" {
204204
# ------------------------------------------------------------------------------------------------------
205205
206206
terraform {
207-
source = "git::[email protected]:gruntwork-io/terraform-aws-ecs.git//modules/ecs-daemon-service?ref=v0.38.8"
207+
source = "git::[email protected]:gruntwork-io/terraform-aws-ecs.git//modules/ecs-daemon-service?ref=v0.38.9"
208208
}
209209
210210
inputs = {
@@ -587,11 +587,11 @@ If true, Terraform will wait for the service to reach a steady state—as in, th
587587
<!-- ##DOCS-SOURCER-START
588588
{
589589
"originalSources": [
590-
"https://github.com/gruntwork-io/terraform-aws-ecs/tree/v0.38.8/modules/ecs-daemon-service/readme.md",
591-
"https://github.com/gruntwork-io/terraform-aws-ecs/tree/v0.38.8/modules/ecs-daemon-service/variables.tf",
592-
"https://github.com/gruntwork-io/terraform-aws-ecs/tree/v0.38.8/modules/ecs-daemon-service/outputs.tf"
590+
"https://github.com/gruntwork-io/terraform-aws-ecs/tree/v0.38.9/modules/ecs-daemon-service/readme.md",
591+
"https://github.com/gruntwork-io/terraform-aws-ecs/tree/v0.38.9/modules/ecs-daemon-service/variables.tf",
592+
"https://github.com/gruntwork-io/terraform-aws-ecs/tree/v0.38.9/modules/ecs-daemon-service/outputs.tf"
593593
],
594594
"sourcePlugin": "module-catalog-api",
595-
"hash": "d9b9034ccf341c712966efab77ca4dc5"
595+
"hash": "483fc65f944c755549d1a7ff652ef6da"
596596
}
597597
##DOCS-SOURCER-END -->

Diff for: 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.8" lastModifiedVersion="0.37.0"/>
12+
<VersionBadge repoTitle="Amazon ECS" version="0.38.9" lastModifiedVersion="0.37.0"/>
1313

1414
# ECS Deployment Scripts
1515

16-
<a href="https://github.com/gruntwork-io/terraform-aws-ecs/tree/v0.38.8/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.9/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.8/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.9/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.8/modules/ecs-deploy/readme.md",
99-
"https://github.com/gruntwork-io/terraform-aws-ecs/tree/v0.38.8/modules/ecs-deploy/variables.tf",
100-
"https://github.com/gruntwork-io/terraform-aws-ecs/tree/v0.38.8/modules/ecs-deploy/outputs.tf"
98+
"https://github.com/gruntwork-io/terraform-aws-ecs/tree/v0.38.9/modules/ecs-deploy/readme.md",
99+
"https://github.com/gruntwork-io/terraform-aws-ecs/tree/v0.38.9/modules/ecs-deploy/variables.tf",
100+
"https://github.com/gruntwork-io/terraform-aws-ecs/tree/v0.38.9/modules/ecs-deploy/outputs.tf"
101101
],
102102
"sourcePlugin": "module-catalog-api",
103-
"hash": "cb3a219b4950cd579b640100af9725ad"
103+
"hash": "4a228edf819d75adff3993292c230a7e"
104104
}
105105
##DOCS-SOURCER-END -->

Diff for: 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.8" lastModifiedVersion="0.24.1"/>
12+
<VersionBadge repoTitle="Amazon ECS" version="0.38.9" lastModifiedVersion="0.24.1"/>
1313

1414
# Fargate Module
1515

16-
<a href="https://github.com/gruntwork-io/terraform-aws-ecs/tree/v0.38.8/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.9/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.8/modules/ecs-fargate/readme.md",
27-
"https://github.com/gruntwork-io/terraform-aws-ecs/tree/v0.38.8/modules/ecs-fargate/variables.tf",
28-
"https://github.com/gruntwork-io/terraform-aws-ecs/tree/v0.38.8/modules/ecs-fargate/outputs.tf"
26+
"https://github.com/gruntwork-io/terraform-aws-ecs/tree/v0.38.9/modules/ecs-fargate/readme.md",
27+
"https://github.com/gruntwork-io/terraform-aws-ecs/tree/v0.38.9/modules/ecs-fargate/variables.tf",
28+
"https://github.com/gruntwork-io/terraform-aws-ecs/tree/v0.38.9/modules/ecs-fargate/outputs.tf"
2929
],
3030
"sourcePlugin": "module-catalog-api",
31-
"hash": "3916866e640e6d4b9050743ff5b223e7"
31+
"hash": "2a056f90acdd5b3304aaed0a02c9af91"
3232
}
3333
##DOCS-SOURCER-END -->

0 commit comments

Comments
 (0)