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

resource/aws_vpc: Set ipv6 properties even if no ipv6 is enabled to allow usage in conditionals (fixes #688) #2103

Merged
merged 1 commit into from
Nov 7, 2018

Conversation

flosell
Copy link
Contributor

@flosell flosell commented Oct 30, 2017

This sets IPv6-related attributes of a VPC to empty-string instead of leaving them undefined in case the VPC doesn't have VPC enabled. This allows us to use the attributes in a conditional as described in #688.

In a way, this feels like a very specific workaround for hashicorp/hil#50. However, it might help some people creating modules where IPv6-support is optional.

Feel free to reject this PR if you feel it adds more tech-debt than value.

@radeksimko radeksimko added bug Addresses a defect in current functionality. upstream-terraform Addresses functionality related to the Terraform core binary. labels Oct 31, 2017
@radeksimko radeksimko added the size/S Managed by automation to categorize the size of a PR. label Nov 15, 2017
@antonbabenko
Copy link
Contributor

@radeksimko Can this be merged? size/S indeed.

@antonbabenko
Copy link
Contributor

@Ninir Do you have any opinion on this? I'd like to get this released in order to resolve terraform-aws-modules/terraform-aws-vpc#21

@radeksimko radeksimko added the service/ec2 Issues and PRs that pertain to the ec2 service. label Jan 16, 2018
@radeksimko radeksimko changed the title Set ipv6 properties even if no ipv6 is enabled in VPC to allow usage in conditionals (fixes #688) resource/aws_vpc: Set ipv6 properties even if no ipv6 is enabled to allow usage in conditionals (fixes #688) Jan 16, 2018
@sc250024
Copy link

Are there any updates for this from Terraform's side?

john-pierce added a commit to QuicketSolutions/terraform-provider-aws that referenced this pull request May 3, 2018
hashicorp#2103

* resource/aws_vpc: Set ipv6 properties even if no ipv6 is enabled to
  allow usage in conditionals (fixes hashicorp#688) hashicorp#2103
@bflad bflad added this to the v1.43.1 milestone Nov 7, 2018
Copy link
Contributor

@bflad bflad left a comment

Choose a reason for hiding this comment

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

I'm very sorry this didn't get pulled in earlier. I believe it was waiting for Terraform 0.12 related updates however, we do this same logic other places so I'm going to pull this in for consistency.

@bflad bflad merged commit 450e7fe into hashicorp:master Nov 7, 2018
bflad added a commit that referenced this pull request Nov 8, 2018
@bflad
Copy link
Contributor

bflad commented Nov 9, 2018

This has been released in version 1.43.1 of the AWS provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading.

@antonbabenko
Copy link
Contributor

Thanks, Brian!

@ghost
Copy link

ghost commented Apr 2, 2020

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks!

@ghost ghost locked and limited conversation to collaborators Apr 2, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Addresses a defect in current functionality. service/ec2 Issues and PRs that pertain to the ec2 service. size/S Managed by automation to categorize the size of a PR. upstream-terraform Addresses functionality related to the Terraform core binary.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants