Skip to content

Commit d0e329b

Browse files
committed
Enable DNS in VPCs created by the ECS CLI be setting EnableDNSHostnames to true.
1 parent 81cc770 commit d0e329b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ecs-cli/modules/clients/aws/cloudformation/cluster_template.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -364,6 +364,8 @@ var cluster_template = `
364364
"Condition": "CreateVpcResources",
365365
"Type": "AWS::EC2::VPC",
366366
"Properties": {
367+
"EnableDnsSupport" : true,
368+
"EnableDnsHostnames" : true,
367369
"CidrBlock": {
368370
"Fn::FindInMap": ["VpcCidrs", "vpc", "cidr"]
369371
}

0 commit comments

Comments
 (0)