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

Drop support for deprecated features, revamp VPC Endpoint support #112

Merged
merged 1 commit into from
Oct 5, 2022
Merged

Conversation

Nuru
Copy link
Contributor

@Nuru Nuru commented Oct 5, 2022

Note

This will be released as version 2.0.0-rc1 and possibly as 2.0.0 without changes.
See migration notes for details.

what

  • Drop support for deprecated features
  • Revamp VPC Endpoint support (modules/vpc-endpoints)
  • Clean up documentation
  • Update tests to current framework and current modules

why

  • AWS is retiring ClassicLink. Closes Remove classiclink support #111
  • AWS provider version 4 deprecates (and version 5 is set to remove) inline resource creation for VPC Endpoint Route Tables, Subnet associations, and Security Group associations. Convert to new architecture in preparation for v5.
  • Add route table association for VPC Gateway Endpoints as a convenience, since they are always needed
  • More clarity, more standardization
  • Keep examples current, pull in bugfixes and security updates

references

@Nuru Nuru added the no-release Do not create a new release (wait for additional code changes) label Oct 5, 2022
@Nuru Nuru requested review from mcalhoun and aknysh October 5, 2022 03:59
@Nuru Nuru requested review from a team as code owners October 5, 2022 03:59
@Nuru Nuru requested review from joe-niland and RothAndrew and removed request for a team October 5, 2022 03:59
@Nuru
Copy link
Contributor Author

Nuru commented Oct 5, 2022

/test all

Copy link
Member

@Benbentwo Benbentwo left a comment

Choose a reason for hiding this comment

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

Looks good and well documented. One small comment, no fix really, just how I read it


You will need to add `route_table_ids` to `gateway_vpc_endpoints`, but it can be an empty list.

Terraform plan may show changes, but they should not have any effect.
Copy link
Member

@Benbentwo Benbentwo Oct 5, 2022

Choose a reason for hiding this comment

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

this line is somewhat concerning Should not have any effect

@Nuru Nuru merged commit 53fd687 into master Oct 5, 2022
@Nuru Nuru deleted the v2 branch October 5, 2022 17:38
@@ -19,11 +19,11 @@ output "vpc_id" {
}

output "gateway_vpc_endpoints" {
value = module.vpc_endpoints.gateway_vpc_endpoints
value = module.vpc_endpoints.gateway_vpc_endpoints_map
description = "List of Gateway VPC Endpoints deployed to the VPC."
}
Copy link
Member

Choose a reason for hiding this comment

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

I'd update the description to

description = "Gateway VPC Endpoints deployed to the VPC."

but we can do it in a follow up OR since we have to update this anyway

source   = "cloudposse/security-group/aws"
  version  = "2.0.0-rc1"

description = "List of Gateway VPC Endpoints deployed to the VPC."
}

output "interface_vpc_endpoints" {
value = module.vpc_endpoints.interface_vpc_endpoints
value = module.vpc_endpoints.interface_vpc_endpoints_map
description = "List of Interface VPC Endpoints deployed to the VPC."
Copy link
Member

Choose a reason for hiding this comment

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

description = "Interface VPC Endpoints deployed to the VPC."

Copy link
Member

@aknysh aknysh left a comment

Choose a reason for hiding this comment

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

lgtm, a few nitpicks which can be addressed in follow up PRs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
no-release Do not create a new release (wait for additional code changes)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Remove classiclink support
3 participants