Skip to content

Commit

Permalink
chore: tidy tags
Browse files Browse the repository at this point in the history
  • Loading branch information
pdabelf5 committed Aug 18, 2023
1 parent c37b84f commit 2701cb9
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 12 deletions.
1 change: 1 addition & 0 deletions terraform/basic-reference/aws/providers.tf
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ provider "aws" {
default_tags {
tags = {
Deployment = "NGINX Management Suite Basic Reference Architecture"
Terraform = "true"
}
}
}
Expand Down
3 changes: 0 additions & 3 deletions terraform/basic-reference/aws/storage.tf
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,4 @@ resource "aws_volume_attachment" "disks" {
volume_id = aws_ebs_volume.disks[count.index].id
instance_id = aws_instance.nms_example.id
stop_instance_before_detaching = true
tags = {
Owner = data.aws_caller_identity.current.user_id
}
}
2 changes: 0 additions & 2 deletions terraform/basic-reference/aws/vpc.tf
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@ module "vpc" {
private_subnets = [local.controlplane_subnet_cidr_blocks, local.dataplane_subnet_cidr_blocks]
enable_nat_gateway = true
tags = {
Terraform = "true"
Environment = "dev"
Owner = data.aws_caller_identity.current.user_id
}
}
Expand Down
10 changes: 3 additions & 7 deletions terraform/standalone/nms/aws/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ provider "aws" {
default_tags {
tags = {
Deployment = "NGINX Management Suite Standalone"
Terraform = "true"
}
}
}
Expand Down Expand Up @@ -99,10 +100,8 @@ module "vpc" {
azs = [random_shuffle.random_az.result[0]]
public_subnets = ["10.0.101.0/24"]

tags = {
Terraform = "true"
Environment = "dev"
Owner = data.aws_caller_identity.current.user_id
tags = {
Owner = data.aws_caller_identity.current.user_id
}
}

Expand Down Expand Up @@ -179,7 +178,4 @@ resource "aws_volume_attachment" "disks" {
volume_id = aws_ebs_volume.disks[count.index].id
instance_id = aws_instance.nms_example.id
stop_instance_before_detaching = true
tags = {
Owner = data.aws_caller_identity.current.user_id
}
}

0 comments on commit 2701cb9

Please sign in to comment.