Skip to content

Commit

Permalink
Make sure CF marks eni0 as delete_on_terminate
Browse files Browse the repository at this point in the history
  • Loading branch information
granular-ryanbonham committed Jun 5, 2019
1 parent 790a582 commit 15a4570
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,8 @@ func (t *LaunchTemplate) RenderCloudformation(target *cloudformation.Cloudformat
ImageID: image,
InstanceType: e.InstanceType,
NetworkInterfaces: []*cloudformationLaunchTemplateNetworkInterfaces{
{AssociatePublicIPAddress: e.AssociatePublicIP},
{AssociatePublicIPAddress: e.AssociatePublicIP,
DeleteOnTermination: fi.Bool(true)},
},
},
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,8 @@ func TestLaunchTemplateCloudformationRender(t *testing.T) {
"KeyName": "mykey",
"NetworkInterfaces": [
{
"AssociatePublicIpAddress": true
"AssociatePublicIpAddress": true,
"DeleteOnTermination": true
}
],
"Placement": [
Expand Down Expand Up @@ -144,7 +145,8 @@ func TestLaunchTemplateCloudformationRender(t *testing.T) {
"KeyName": "mykey",
"NetworkInterfaces": [
{
"AssociatePublicIpAddress": true
"AssociatePublicIpAddress": true,
"DeleteOnTermination": true
}
],
"Placement": [
Expand Down

0 comments on commit 15a4570

Please sign in to comment.