Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add tags on network interfaces #1362

Merged
merged 6 commits into from
May 27, 2021

Conversation

alexmnyc
Copy link
Contributor

@alexmnyc alexmnyc commented May 17, 2021

PR o'clock

Description

Resolves #1361

Checklist

@alexmnyc alexmnyc changed the title adding eni tags fix: adding eni tags May 17, 2021
@alexmnyc
Copy link
Contributor Author

All resources created by the module must be tagged consistently. This PR addresses ENI lack of tags

@barryib barryib changed the title fix: adding eni tags feat: Add tags on network interfaces May 27, 2021
@barryib barryib merged commit c43d545 into terraform-aws-modules:master May 27, 2021
@barryib
Copy link
Member

barryib commented May 27, 2021

Thanks @alexmnyc for your contribution.

@alexmnyc
Copy link
Contributor Author

@barryib my pleasure

@jan-ludvik-deltatre
Copy link

jan-ludvik-deltatre commented May 28, 2021

Hi @alexmnyc, I am getting this. Am I doing something wrong?

expected tag_specifications.2.resource_type to be one of [instance volume spot-instances-request elastic-gpu], got network-interface

@barryib
Copy link
Member

barryib commented May 28, 2021

Hi @alexmnyc, I am getting this. Am I doing something wrong?

expected tag_specifications.2.resource_type to be one of [instance volume spot-instances-request elastic-gpu], got network-interface

It sounds like I merged this, and it's not supported 🤦‍♂️

https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_LaunchTemplateTagSpecificationRequest.html

The type of resource to tag. Currently, the resource types that support tagging on creation are instance and volume.

https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/launch_template#tag-specifications

The type of resource to tag. Valid values are instance, volume, elastic-gpu and spot-instances-request.

@jan-ludvik-deltatre @alexmnyc can you confirm please.

@lisfo4ka
Copy link
Contributor

But shouldn't CI fail on this before the merge?

  tag_specifications {
    resource_type = "network-interface"

@barryib
Copy link
Member

barryib commented May 28, 2021

But shouldn't CI fail on this before the merge?

  tag_specifications {
    resource_type = "network-interface"

The CI only terraform validate. I also thought that this kind of bug will be catched during that phase, but found that even terraform plan don't.

This is a ongoing feature in the terraform-provider-aws. Here the related PR hashicorp/terraform-provider-aws#18033.

Until that PR get merged, I'm reverting this.

@alexmnyc
Copy link
Contributor Author

Screenshot_20210528-103759_Chrome.jpg

@alexmnyc
Copy link
Contributor Author

I see, it seems like aws provider is out of date and doesn't support it. Is that the issue?

@barryib
Copy link
Member

barryib commented May 28, 2021

I see, it seems like aws provider is out of date and doesn't support it. Is that the issue?

Yes. Please see my previous comment.

For the revert could you review #1407

@barryib
Copy link
Member

barryib commented May 28, 2021

Reverted in v17.0.2

@barryib
Copy link
Member

barryib commented May 28, 2021

@alexmnyc can you please follow hashicorp/terraform-provider-aws#18033 and re-open a PR as soon as it get released in the provider ?

Thanks everyone for your help.

@alexmnyc
Copy link
Contributor Author

Thanks @barryib Will do. My bad. One would think it would be a pass through value given the AWS spec

ArchiFleKs pushed a commit to ArchiFleKs/terraform-aws-eks that referenced this pull request Jun 1, 2021
@github-actions
Copy link

I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 14, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Network interfaces are missing tags
4 participants