cloudposse/dynamic-subnets

Terraform module for public and private subnets provisioning in existing VPC.

Terraform module
AWS
available
Placeholder. This template is not in the library yet. Deploy opens the platform so you can start from your own repository; tell us there if you want this one.
Downloads
4.0M
Version
3.1.1
Published
2026-02-17
License
Apache-2.0
Maintainer
cloudposse

About

Terraform module for public and private subnets provisioning in existing VPC.

Maintained by cloudposse on the Terraform Registry. Latest version 3.1.1, 4.0M downloads. Requires providers: aws >= 5.0.

Deploy creates a StackGuardian workflow from the module's GitHub repository, pinned to this version. You set the inputs, see the plan, then approve the apply.

Use cases

  • Landing-zone networking: one module, one approved pattern per team.
  • Shared VPC or hub-and-spoke for several accounts or projects.
  • Ephemeral environments that need their own network each time.

Inputs

Required inputs:

  • vpc_id — string

84 inputs in total. The full list, with defaults and descriptions, is on the registry page.

What it creates

  • aws_subnet
  • aws_route_table
  • aws_route
  • aws_nat_gateway
  • aws_eip
  • aws_network_acl

How it runs on StackGuardian

Terraform workflow from the module's GitHub repository: plan, policy check, approval, then apply.

Plan
Policy check
Approval
Apply

Approvals happen in StackGuardian. An agent can never approve its own run. Every run keeps its plan, policy results and approver in the audit log.

Pick a template. Deploy it with guardrails.