Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
fklasen-snyk authored Mar 22, 2024
1 parent 6c3019c commit 3174b03
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions modules/subnet/main.tf
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
resource "aws_subnet" "main" {
resource "aws_subnet" "terraform_main" {
vpc_id = var.vpc_id
cidr_block = var.cidr_main
availability_zone = "${var.region}a"
Expand All @@ -8,12 +8,12 @@ resource "aws_subnet" "main" {
}
}

resource "aws_subnet" "secondary" {
resource "aws_subnet" "terraform_secondary" {
vpc_id = var.vpc_id
cidr_block = var.cidr_secondary
availability_zone = "${var.region}c"

tags = {
Name = "Main"
Name = "Secondary"
}
}
4 changes: 2 additions & 2 deletions modules/subnet/outputs.tf
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
output "subnet_id_main" {
value = aws_subnet.main.id
value = aws_subnet.terraform_main.id
}

output "subnet_id_secondary" {
value = aws_subnet.secondary.id
value = aws_subnet.terraform_secondary.id
}

0 comments on commit 3174b03

Please sign in to comment.