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

Add IPv6 support (Terraform 0.12 edition) #300

Closed

Conversation

StephenKing
Copy link

Add variable enable_ipv6 to allow enabling IPv6 support (resulting in passing assign_generated_ipv6_cidr_block to aws_vpc).

Enabling IPv6 support further results in an egress-only internet gateway being provisioned and routing tables of subnets being adjusted.

Additional variables allow to choose the indices out of the /64 subnet based on the assigned /56 range.

This is based on @bcenker's work in #16 as well as @dekimsey's on #218, but based on a clean master branch (after the Terraform 0.12 upgrade).

dekimsey and others added 7 commits July 8, 2019 23:20
Add variable "enable_ipv6" to allow enabling IPv6 support (resulting in
passing "assign_generated_ipv6_cidr_block" to aws_vpc.

Enabling IPv6 support further results in an Egress-only internet gateway
being provisioned and routing tables of subnets being adjusted.

Additional variables allow to choose the indices out of the /64 subnets
based on the assigned /56 range.
This is needed exactly when var.enable_ipv6 is true.
default = false
}

variable "private_subnet_ipv6_prefixes" {
Copy link
Author

Choose a reason for hiding this comment

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

Strictly speaking.. those are not prefixes, but more the.. indices of the prefixes? Suggestions?

Copy link

@dekimsey dekimsey Jul 8, 2019

Choose a reason for hiding this comment

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

Agreed, they aren't. They are the last octet* of the given ipv6 prefix. IPv6 docs tends to be prefix based, so I chose that. Admittedly, it's not a great name, but I couldn't for the life of me figure out what a better way to describe the fact they are an enumerated list of the last octet in an IPv6 prefix such as 2001:db8::ff00:42:83XX. I explicitly didn't go with index or slice because I didn't want it to be confused as an index of another list.

So maybe ..._subnet_ipv6_octet?

(*) As a decimal because terraform didn't have functions for converting octal to dec.

Copy link
Author

Choose a reason for hiding this comment

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

What about giving an example in the description? While it already suggests 0-256, an example like [0, 1, 2]might make it clearer. The description (and the topic) feels pretty complex :-)

@antonbabenko
Copy link
Member

v2.10.0 has been released (see #317).

@github-actions
Copy link

github-actions bot commented Nov 4, 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 4, 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