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

Rewrite of vpc module + awscc resources #32

Merged
merged 12 commits into from
Apr 6, 2022
Merged

Conversation

drewmullen
Copy link
Contributor

@drewmullen drewmullen commented Mar 23, 2022

This PR is a complete rewrite of the VPC module. Inputs and outputs are expected to change and thus cause a breaking change release. We use awscc resources where possible

Subnets in a VPC are defined in the subnets map variable. Public / Private are currently only allowed. Transit Gateway subnets are a fast follow to this PR

You can calculate the CIDRs for your subnets by passing a netmask argument. This is especially helpful when using ipam to derive your VPC CIDR.

Examples and tests are provided

Follow ups:

  • TGW subnet support
  • VPC Endpoint decision (to include or not)

@drewmullen drewmullen changed the title Rewrite of vpc module Rewrite of vpc module + awscc resources Mar 23, 2022
@andrew-glenn andrew-glenn marked this pull request as draft March 23, 2022 15:33
@andrew-glenn andrew-glenn marked this pull request as ready for review March 23, 2022 15:33
examples/ipam/main.tf Outdated Show resolved Hide resolved
.header.md Outdated Show resolved Hide resolved
Copy link
Member

@tlindsay42 tlindsay42 left a comment

Choose a reason for hiding this comment

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

A few minor things- the most important which are docs for the examples so they look good in the tf registry.

examples/public_only/main.tf Outdated Show resolved Hide resolved
examples/private_only/main.tf Outdated Show resolved Hide resolved
examples/public_private_flow_logs/main.tf Outdated Show resolved Hide resolved
modules/calculate_subnets/provider.tf Outdated Show resolved Hide resolved
modules/flow_logs/provider.tf Outdated Show resolved Hide resolved
provider.tf Outdated Show resolved Hide resolved
variables.tf Outdated Show resolved Hide resolved
tlindsay42
tlindsay42 previously approved these changes Apr 5, 2022
Copy link
Member

@tlindsay42 tlindsay42 left a comment

Choose a reason for hiding this comment

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

Approved with some comments. Nice work!

.header.md Outdated Show resolved Hide resolved
providers.tf Show resolved Hide resolved
data.tf Show resolved Hide resolved
defaults.tf Show resolved Hide resolved
outputs.tf Show resolved Hide resolved
Copy link
Member

@tlindsay42 tlindsay42 left a comment

Choose a reason for hiding this comment

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

lgtm!

@drewmullen drewmullen merged commit 5718fc1 into aws-ia:main Apr 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants