Skip to content
This repository has been archived by the owner on Jan 8, 2024. It is now read-only.

Commit

Permalink
Merge pull request #758 from hashicorp/backport/dl-ec2cluster-no-publ…
Browse files Browse the repository at this point in the history
…ic-ip/actually-sensible-caiman

Backport of Update ECS plugin to not assign public ip on ec2_cluster into release/0.1.x
  • Loading branch information
mitchellh authored Nov 5, 2020
2 parents 5217500 + d7fa95c commit a0ad365
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion builtin/aws/ecs/platform.go
Original file line number Diff line number Diff line change
Expand Up @@ -1067,7 +1067,9 @@ func (p *Platform) Launch(
SecurityGroups: []*string{sgecsport},
}

netCfg.AssignPublicIp = aws.String("ENABLED")
if !p.config.EC2Cluster {
netCfg.AssignPublicIp = aws.String("ENABLED")
}

s.Status("Creating ECS Service (%s, cluster-name: %s)", serviceName, clusterName)
servOut, err := ecsSvc.CreateService(&ecs.CreateServiceInput{
Expand Down

0 comments on commit a0ad365

Please sign in to comment.