terraform aws subnet data code example
Example: aws terraform subnet
resource "aws_subnet" "<name your subnet>" {
vpc_id = aws_vpc.<name of vpc you created>.id
cidr_block = "10.0.1.0/24"
tags = { (optional)
Name = "<name your subnet>"
}
}