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

can't remove ipv6_cidr_block from aws_subnet #10815

Closed
dmrzzz opened this issue Nov 9, 2019 · 3 comments · Fixed by #12303
Closed

can't remove ipv6_cidr_block from aws_subnet #10815

dmrzzz opened this issue Nov 9, 2019 · 3 comments · Fixed by #12303
Labels
bug Addresses a defect in current functionality. service/ec2 Issues and PRs that pertain to the ec2 service.
Milestone

Comments

@dmrzzz
Copy link

dmrzzz commented Nov 9, 2019

Removing a previously-applied ipv6_cidr_block parameter from aws_subnet does not produce the expected behavior of removing the IPv6 CIDR.

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Terraform Version

Terraform v0.12.13
+ provider.aws v2.35.0

Affected Resource(s)

  • aws_subnet

Terraform Configuration Files

provider "aws" {
  region = "us-west-2"
}

resource "aws_vpc" "vpc" {
  cidr_block = "192.168.0.0/24"
  assign_generated_ipv6_cidr_block = true
}

resource "aws_subnet" "subnet" {
  vpc_id          = aws_vpc.vpc.id
  cidr_block      = "192.168.0.0/26"
  #ipv6_cidr_block = cidrsubnet(aws_vpc.vpc.ipv6_cidr_block, 8, 0)
}

output "subnet" {
  value = aws_subnet.subnet
}

Steps to Reproduce

  1. terraform apply

    creates the VPC (with IPv6) and subnet (IPv4-only), as expected

  2. Uncomment the ipv6_cidr_block line

  3. terraform apply

    updates the subnet in-place to add ipv6_cidr_block, as expected

  4. Re-comment the ipv6_cidr_block line

  5. terraform apply

    Expected: should update the subnet to remove ipv6_cidr_block
    Actual: apply completes immediately with no changes, and my subnet still has IPv6

@ghost ghost added the service/ec2 Issues and PRs that pertain to the ec2 service. label Nov 9, 2019
@github-actions github-actions bot added the needs-triage Waiting for first response or review from a maintainer. label Nov 9, 2019
@gdavison gdavison added bug Addresses a defect in current functionality. and removed needs-triage Waiting for first response or review from a maintainer. labels Nov 13, 2019
@bflad bflad added this to the v3.3.0 milestone Aug 20, 2020
@bflad
Copy link
Contributor

bflad commented Aug 20, 2020

The fix for this has been merged and will release with version 3.3.0 of the Terraform AWS Provider, shortly. Thanks to @DrFaust92 for the implementation. 👍

@ghost
Copy link

ghost commented Aug 20, 2020

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

For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template for triage. Thanks!

@ghost
Copy link

ghost commented Sep 20, 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 Sep 20, 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.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants