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

Remove deprecated vpc argument to aws_eip #80

Merged
merged 2 commits into from
Sep 28, 2023

Conversation

ascandella
Copy link
Contributor

The vpc = true is throwing deprecation diagnostics. It still works this way, but is not referenced in the documentation anymore.

Screenshot 2023-09-28 at 7 49 50 AM

Ran a terraform plan against my forked version and the plan came up clean (no changes) without any of the warning diagnostics.

@ascandella ascandella requested review from a team as code owners September 28, 2023 14:51
Copy link
Member

@bwhaley bwhaley left a comment

Choose a reason for hiding this comment

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

Thanks for submitting this! To make this even simpler, I think we can just omit vpc and domain. As I understand it, this is a legacy option to support EC2 Classic which is now deprecated by AWS. Using VPC is the default behavior. So I think we should just remove vpc = true and we should be good. 👍

@ascandella
Copy link
Contributor Author

ascandella commented Sep 28, 2023

Ah cool, good point. The docs all show with domain = "vpc" so I assumed it was necessary to get it to do the right thing.

But I just tested a terraform plan and it came up clean with removing the line entirely. Reading the docs it seems like the domain = "vpc" might be a bit safer in case anybody is running this in a VPC with EC2 classic, but it also looks like that may finally be deprecated?

I haven't tested destroying and re-creating the EIP with this branch, though.

@ascandella ascandella changed the title Update aws_eip VPC syntax to non-deprecated version Remove deprecated vpc argument to aws_eip Sep 28, 2023
@bwhaley
Copy link
Member

bwhaley commented Sep 28, 2023

Worked for me. Thanks for the contribution!

@bwhaley bwhaley merged commit 0141b69 into chime:main Sep 28, 2023
@ascandella ascandella deleted the fix-deprecated-eip branch September 28, 2023 18:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants