-
-
Notifications
You must be signed in to change notification settings - Fork 355
feat: Add IPv6 support (ALB and Route53 AAAA record) #256
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
Conversation
I think we can add the AAAA record, but if users want to use IPv6 then I think they should use an externally created VPC module otherwise we're slowly going to pull in that entire module here |
That's what I'm doing anyway. I was managing the AAAA record separately too, the only necessary feature really is to be able to set the ALB Should I just reduce the PR to exposing an |
main.tf
Outdated
@@ -234,6 +242,8 @@ module "alb" { | |||
prefix = var.alb_log_location_prefix | |||
} | |||
|
|||
ip_address_type = var.enable_ipv6 ? "dualstack" : "ipv4" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ya lets just make this
ip_address_type = var.enable_ipv6 ? "dualstack" : "ipv4" | |
ip_address_type = var.alb_ip_address_type |
And the variable default will be "ipv4"
like the ALB module does
main.tf
Outdated
@@ -421,6 +431,20 @@ resource "aws_route53_record" "atlantis" { | |||
} | |||
} | |||
|
|||
resource "aws_route53_record" "atlantis-AAAA" { | |||
count = var.create_route53_record && var.enable_ipv6 ? 1 : 0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we can simplify and do
count = var.create_route53_record && var.enable_ipv6 ? 1 : 0 | |
count = var.create_route53_aaaa_record ? 1 : 0 |
ya see the two comments above, and then we can just drop the VPC module changes from here |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good to me - what do you think @antonbabenko
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also, please update the docs (run pre-commit run -a
and commit changes).
main.tf
Outdated
@@ -421,6 +423,20 @@ resource "aws_route53_record" "atlantis" { | |||
} | |||
} | |||
|
|||
resource "aws_route53_record" "atlantis-AAAA" { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
resource "aws_route53_record" "atlantis-AAAA" { | |
resource "aws_route53_record" "atlantis_aaaa" { |
lowercase and _
I was wondering how you ran Docs updated. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a minor comment before merging.
This PR has been automatically marked as stale because it has been open 30 days |
This PR was automatically closed because of stale in 10 days |
@bryantbiggs @antonbabenko can this be reopened and merged please? I'm not aware of any outstanding issues with it (I really hate stale bots) |
@bodgit Apologies for the delay with this PR. Mentioning my username when something has been finished helps me a lot! |
## [3.14.0](v3.13.1...v3.14.0) (2022-04-01) ### Features * Add IPv6 support (ALB and Route53 AAAA record) ([#256](#256)) ([6cefda0](6cefda0))
This PR is included in version 3.14.0 🎉 |
## [3.14.0](terraform-aws-modules/terraform-aws-atlantis@v3.13.1...v3.14.0) (2022-04-01) ### Features * Add IPv6 support (ALB and Route53 AAAA record) ([terraform-aws-modules#256](terraform-aws-modules#256)) ([6cefda0](terraform-aws-modules@6cefda0))
## [3.14.0](terraform-aws-modules/terraform-aws-atlantis@v3.13.1...v3.14.0) (2022-04-01) ### Features * Add IPv6 support (ALB and Route53 AAAA record) ([terraform-aws-modules#256](terraform-aws-modules#256)) ([6cefda0](terraform-aws-modules@6cefda0))
## [3.14.0](terraform-aws-modules/terraform-aws-atlantis@v3.13.1...v3.14.0) (2022-04-01) ### Features * Add IPv6 support (ALB and Route53 AAAA record) ([terraform-aws-modules#256](terraform-aws-modules#256)) ([6cefda0](terraform-aws-modules@6cefda0))
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. |
Description
This PR enables IPv6 support for the VPC, ALB and adds a AAAA Route53 record.
Motivation and Context
I need to run Atlantis with IPv6 connectivity. I manage the VPC outside of this module so that already has IPv6 enabled so primarily I just needed to change the ALB to "dualstack" and add the AAAA record. I've added additional variables so if the VPC is managed by this module the same configuration can be achieved.
Breaking Changes
None. The new
enable_ipv6
variable defaults to false so existing IPv4-only behaviour is preserved.How Has This Been Tested?
examples/*
projectsThis will perhaps need a new example?