← Browse
aws-vpc-to-terraform
Read/writeExport a live AWS VPC to Terraform HCL with aws_vpc resource and imports
- Path
aws/terraform/vpc2tf.sh- Language
- bash
- Category
aws/terraform- Version
- 1.0.0
- Size
- 3.3 KB
- Last modified
- May 23, 2026, 08:24 PM
Required binaries
awsjqterraform
Environment variables
AWSAWS_PROFILEAWS_DEFAULT_REGION
Required permissions
ec2:DescribeVpcsec2:DescribeVpcAttribute
Tags
awsvpcterraformiacexporthcl
Run locally
# from the repo root bash aws/terraform/vpc2tf.sh # or via the ops CLI ops run aws/terraform/vpc2tf.sh
AI operator plan
idleIf the deployment sets PLATPHORM_PROTECT=1, Vercel Authentication is the protection layer and this field may be left blank.
Run in sandbox
readyRuns in an isolated Vercel Sandbox (Firecracker microVM, 5 min max, no persistent state). Runs require PLATPHORM_API_KEY unless the deployment sets PLATPHORM_PROTECT=1, where Vercel Authentication is the protection layer. The key stays in component state and is never persisted by this UI.
Related scripts
aws-get-security-groupRead-onlyRead-only
Inventory security groups (filterable by VPC ID or SG ID) and emit Terraform
aws/inventory/110-get-security-group.sh·bash
awsec2security-groupvpcterraforminventory
awscc-vpc.shno frontmatterNeeds frontmatter
aws/terraform/awscc-vpc.sh·bash
aws-get-iam-usersRead-onlyRead-only
List IAM users (optionally filter by username) and emit Terraform import
aws/inventory/030-get-iam-users.sh·bash
awsiamusersterraforminventory
aws-get-s3-bucketsRead-onlyRead-only
List S3 buckets (optionally filter by name) and emit Terraform import
aws/inventory/060-get-s3.sh·bash
awss3storageterraforminventory