Skip to content

Commit 30c8c4d

Browse files
committed
aws: Tag Launch Template network interfaces
Signed-off-by: Ciprian Hacman <ciprian@hakman.dev>
1 parent 15b0c74 commit 30c8c4d

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

upup/pkg/fi/cloudup/awstasks/launchtemplate_target_api.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,10 @@ func (t *LaunchTemplate) RenderAWS(c *awsup.AWSAPITarget, a, e, changes *LaunchT
121121
ResourceType: ec2types.ResourceTypeVolume,
122122
Tags: tags,
123123
})
124+
data.TagSpecifications = append(data.TagSpecifications, ec2types.LaunchTemplateTagSpecificationRequest{
125+
ResourceType: ec2types.ResourceTypeNetworkInterface,
126+
Tags: tags,
127+
})
124128
}
125129
// @step: add the userdata
126130
if t.UserData != nil {

upup/pkg/fi/cloudup/awstasks/launchtemplate_target_terraform.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -308,6 +308,10 @@ func (t *LaunchTemplate) RenderTerraform(target *terraform.TerraformTarget, a, e
308308
ResourceType: fi.PtrTo("volume"),
309309
Tags: e.Tags,
310310
})
311+
tf.TagSpecifications = append(tf.TagSpecifications, &terraformLaunchTemplateTagSpecification{
312+
ResourceType: fi.PtrTo("network-interface"),
313+
Tags: e.Tags,
314+
})
311315
tf.Tags = e.Tags
312316
}
313317

0 commit comments

Comments
 (0)