Skip to content

Instantly share code, notes, and snippets.

View sqlxpert's full-sized avatar

Paul Marcelin sqlxpert

View GitHub Profile
@sqlxpert
sqlxpert / aws_vpc_subnets_from_ipam_planning_pool.tf
Last active March 6, 2026 02:07
Allocate VPC subnet private IP address ranges from an IPAM resource planning pool (new in Terraform AWS Provider v6.29)
# AWS IPAM resource planning pool for VPC subnets, in Terraform
# Copyright Paul Marcelin. Licensed under GPLv3.
# https://gist.github.com/sqlxpert/2b1dc6724f081bdccef268cbae6283cb
#
# Related: https://docs.aws.amazon.com/vpc/latest/ipam/tutorials-subnet-planning.html
#
# Try it in CloudShell!
# https://docs.aws.amazon.com/cloudshell/latest/userguide/welcome.html
#
#