hashicorp / hashicorp/packer-plugin-amazon

Add tags with ENI

Open
#254 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Go
Stars
91
Forks
141
Avg merge
2d 18h
Merged PRs (30d)
3

Description

#### Description

Hi.
I want to attach tags with ENI too on Packer Builder instance.
But doesn't support it until now.
I've tested in my machine which work well, this one(https://github.com/9to6/packer-plugin-amazon/commit/780e56a4c15cc86de5e21f4c606bb8ef95ffd076)

```golang
if len(ec2Tags) > 0 {
launchTemplate.LaunchTemplateData.TagSpecifications = append(
launchTemplate.LaunchTemplateData.TagSpecifications,
&ec2.LaunchTemplateTagSpecificationRequest{
ResourceType: aws.String("instance"),
Tags: ec2Tags,
},
)

launchTemplate.LaunchTemplateData.TagSpecifications = append(
launchTemplate.LaunchTemplateData.TagSpecifications,
&ec2.LaunchTemplateTagSpecificationRequest{
ResourceType: aws.String("network-interface"),
Tags: ec2Tags,
},
)
}
```

#### Use Case(s)

I need it to force tags to any AWS resources

#### Potential configuration

```
```

#### Potential References

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.