Skip to content

Conversation

@axel-ippon
Copy link
Contributor

Purpose of this PR

Introduces create_vpc_endpoints variable to make VPC endpoint resources optional, allowing users to choose between VPC endpoints and NAT gateway approaches for private subnet internet access.

All VPC endpoint-related resources now use count-based conditional creation, improving infrastructure flexibility and cost optimization options.

Reference issues or tasks

307

Introduces create_vpc_endpoints variable to make VPC endpoint resources optional, allowing users to choose between VPC endpoints and NAT gateway approaches for private subnet internet access.

All VPC endpoint-related resources now use count-based conditional creation, improving infrastructure flexibility and cost optimization options.
Conditionally creates allow-all egress rules when VPC endpoints are disabled
and restricts prefix list rules to only when VPC endpoints are enabled.
This change supports the migration from VPC endpoints to NAT gateway
for internet access while maintaining security group rule consistency.
Changes network configuration to use NAT gateway as the default networking solution
instead of VPC endpoints. Removes manual NAT gateway variables and implements
automatic conditional logic where NAT gateway is enabled when VPC endpoints are
disabled.
@axel-ippon axel-ippon merged commit 3742a33 into main Jan 5, 2026
6 checks passed
@axel-ippon axel-ippon deleted the feature/307-nat-gateway-instead-of-vpc-endpoints branch January 6, 2026 12:17
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.

4 participants