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

feat: Add support for ip_address_type for VPC endpoint #1096

Merged
merged 5 commits into from
Aug 16, 2024

Conversation

tokarev-artem
Copy link
Contributor

Description

Added parameter ip_address_type to allow ipv4. ipv6 and dualstack ip_address_type support

Motivation and Context

To solve issue #1091

Breaking Changes

None

How Has This Been Tested?

  • [*] I have updated at least one of the examples/* to demonstrate and validate my change(s)
  • [*] I have tested and validated these changes using one or more of the provided examples/* projects
  • [*] I have executed pre-commit run -a on my pull request

Copy link

This PR has been automatically marked as stale because it has been open 30 days
with no activity. Remove stale label or comment or this PR will be closed in 10 days

@github-actions github-actions bot added the stale label Jul 18, 2024
@github-actions github-actions bot removed the stale label Jul 19, 2024
@@ -47,3 +47,36 @@ module "vpc" {

tags = local.tags
}

module "vpc_endpoints" {
Copy link
Member

Choose a reason for hiding this comment

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

we don't need a new example - we can use an existing example

Copy link
Contributor Author

Choose a reason for hiding this comment

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

hi @bryantbiggs , I have a question,
as an example - ipv6 VPC endpoints can be created without subnets attached. But as a good example - probably better to add a fully working example. If the second option is preferable - we need to add ipv6 subnets to the VPC setup. Something like that:

    athena = {
      service                 = "athena"
      ip_address_type = "dualstack"
      subnet_ids           = [ipv6_subnet1, ipv6_subnet2. ipv6_subnet3]
      tags                       = { Name = "athena-vpc-endpoint" }
    },

What do you think about this ?

Copy link
Member

Choose a reason for hiding this comment

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

apologies, I don't understand the question - what are you asking?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

sorry, let me rephrase with details

I can add this minimal example, which will create the endpoint but it will not work because subnets are not defined

lakeformation = {
  service         = "lakeformation"
  ip_address_type = "ipv6"
  tags            = { Name = "lakeformation-vpc-endpoint" }
}

or add an example like this, which is not correct, because module.vpc.private_subnets returns all subnets (ipv4 and ipv6), but not only ipv6

lakeformation = {
  service         = "lakeformation"
  ip_address_type = "ipv6"
  subnet_ids      = module.vpc.private_subnets
  tags            = { Name = "lakeformation-vpc-endpoint" }
},

so the question is - what do you think, is there any good workaround ?

Copy link
Member

Choose a reason for hiding this comment

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

got it - we can forgo updating the example for this, its just adding one argument thats a direct pass through, not much to test/validate/demonstrate

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Removed the example

@bryantbiggs bryantbiggs changed the title feat: Added ip_address_type parameter to aws_vpc_endpoint resource feat: Add support for ip_address_type for VPC endpoint Aug 16, 2024
@bryantbiggs bryantbiggs merged commit d868303 into terraform-aws-modules:master Aug 16, 2024
19 checks passed
antonbabenko pushed a commit that referenced this pull request Aug 16, 2024
## [5.13.0](v5.12.1...v5.13.0) (2024-08-16)

### Features

* Add support for `ip_address_type` for VPC endpoint ([#1096](#1096)) ([d868303](d868303))
@antonbabenko
Copy link
Member

This PR is included in version 5.13.0 🎉

Copy link

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 Sep 16, 2024
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