diff --git a/aws/arm_launch_template.tf b/aws/arm_launch_template.tf index c019c21..0cc5328 100644 --- a/aws/arm_launch_template.tf +++ b/aws/arm_launch_template.tf @@ -43,4 +43,7 @@ resource "aws_launch_template" "arm_template" { Name = "arm-instance" } } + tags = { + user = "pchandaliya" + } } \ No newline at end of file diff --git a/aws/ec2.tf b/aws/ec2.tf index f3d19de..a6536b6 100644 --- a/aws/ec2.tf +++ b/aws/ec2.tf @@ -29,6 +29,7 @@ resource "aws_instance" "web-server" { tags = { Name = "k3s-server" + user = "pchandaliya" } monitoring = true root_block_device { @@ -84,5 +85,6 @@ resource "aws_security_group" "allow-ssh-web" { tags = { Name = "allow-ssh-web" + user = "pchandaliya" } } diff --git a/aws/vpc.tf b/aws/vpc.tf index f28a5d7..0c356db 100644 --- a/aws/vpc.tf +++ b/aws/vpc.tf @@ -7,6 +7,7 @@ resource "aws_vpc" "vpc-tf" { enable_dns_support = true tags = { Name = "vpc-tf" + user = "pchandaliya" } } @@ -17,6 +18,7 @@ resource "aws_subnet" "subnet-tf" { availability_zone = element(data.aws_availability_zones.az.names, 0) tags = { Name = "subnet-tf" + user = "pchandaliya" } } @@ -24,6 +26,7 @@ resource "aws_internet_gateway" "igw" { vpc_id = aws_vpc.vpc-tf.id tags = { Name = "igw-tf" + user = "pchandaliya" } } @@ -37,5 +40,6 @@ resource "aws_default_route_table" "internet_route_table" { tags = { Name = "default-route-table" + user = "pchandaliya" } } \ No newline at end of file diff --git a/gcp/gce.tf b/gcp/gce.tf index fc15114..56aa4c1 100644 --- a/gcp/gce.tf +++ b/gcp/gce.tf @@ -35,4 +35,7 @@ resource "google_compute_instance" "arm_instance" { curl -sSLk -H "authorization: Bearer $TOKEN" -X POST -d '{"orchestration": "Kubernetes", "consoleAddr": "${var.pcc_domain_name}", "namespace": "twistlock", "cri": true}' "https://${var.pcc_domain_name}/api/v22.06/defenders/daemonset.yaml" > daemonset.yaml k3s kubectl apply -f daemonset.yaml -n twistlock SCRIPT + labels = { + user = "pchandaliya" + } }