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 support for "metadata_options" argument #193

Merged

Conversation

jeremyciak
Copy link
Contributor

Description

Adding support for the metadata_options argument of the aws_instance resource

Motivation and Context

#191

Breaking Changes

How Has This Been Tested?

Copy link
Member

@antonbabenko antonbabenko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, but I have just a couple of comments.

This addition is not backward compatible with the existing code because it will trigger an update for users who don't specify var.metadata_options.

Could you please update the code to support it (using dynamic block)?

Could you also change from c5.large to something much smaller, so that it is not very $$$ to run in automation?

@jeremyciak
Copy link
Contributor Author

@antonbabenko please let me know if the latest commit gets this to where you want it to be.

@antonbabenko antonbabenko merged commit ef28a16 into terraform-aws-modules:master Dec 10, 2020
@jeremyciak
Copy link
Contributor Author

I like your implementation a lot more... I modeled mine after the root_block_device which could probably more appropriately be implemented the same way you've done here. However making that change now would probably break implementations of this module "out in the wild".

@antonbabenko
Copy link
Member

Yes, the original implementation was created in pre-0.12 times and I don't want to break it for existing features.

v2.16.0 has been just released.

@yi2020
Copy link

yi2020 commented Dec 10, 2020

@antonbabenko I played around with the new version (thank you) and noticed something odd:
After creating an instance with the module, if you add or remove the metadata_options, Terraform doesn't see that as a reason to rebuild the instance.

@github-actions
Copy link

github-actions bot commented Nov 8, 2022

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 8, 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.

3 participants