Skip to content

Commit

Permalink
add subnets
Browse files Browse the repository at this point in the history
  • Loading branch information
Syuqri authored and Syuqri committed Dec 29, 2023
1 parent 09d4fed commit 334dca4
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,24 @@ resource "aws_vpc" "main" {
tags = {
Name = "main_vpc"
}
}

resource "aws_subnet" "first" {
vpc_id = aws_vpc.main.id
cidr_block = "10.0.1.0/24"
availability_zone = "ap-southeast-1a"

tags = {
Name = "first_subnet"
}
}

resource "aws_subnet" "second" {
vpc_id = aws_vpc.main.id
cidr_block = "10.0.2.0/24"
availability_zone = "ap-southeast-1a"

tags = {
Name = "second_subnet"
}
}

0 comments on commit 334dca4

Please sign in to comment.