resource "aws_vpc" "myvpc" { cidr_block = var.cidr } resource "aws_subnet" "sub1" { vpc_id = aws_vpc.myvpc.id cidr_block = "10.0.0.0/24" availability_zone = "us-east-1a" map_public_ip_on_launch = true }
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter