diff --git a/aws/arm_launch_template.tf b/aws/arm_launch_template.tf index c019c21..4b809a1 100644 --- a/aws/arm_launch_template.tf +++ b/aws/arm_launch_template.tf @@ -43,4 +43,8 @@ resource "aws_launch_template" "arm_template" { Name = "arm-instance" } } + tags = { + git_org = "amckenzie7" + git_repo = "Workload-Protection-on-ARM" + } } \ No newline at end of file diff --git a/aws/ec2.tf b/aws/ec2.tf index f3d19de..f7cf58d 100644 --- a/aws/ec2.tf +++ b/aws/ec2.tf @@ -28,7 +28,9 @@ resource "aws_instance" "web-server" { EOF tags = { - Name = "k3s-server" + Name = "k3s-server" + git_org = "amckenzie7" + git_repo = "Workload-Protection-on-ARM" } monitoring = true root_block_device { @@ -83,6 +85,8 @@ resource "aws_security_group" "allow-ssh-web" { } tags = { - Name = "allow-ssh-web" + Name = "allow-ssh-web" + git_org = "amckenzie7" + git_repo = "Workload-Protection-on-ARM" } } diff --git a/aws/vpc.tf b/aws/vpc.tf index f28a5d7..79544c5 100644 --- a/aws/vpc.tf +++ b/aws/vpc.tf @@ -6,7 +6,9 @@ resource "aws_vpc" "vpc-tf" { enable_dns_hostnames = true enable_dns_support = true tags = { - Name = "vpc-tf" + Name = "vpc-tf" + git_org = "amckenzie7" + git_repo = "Workload-Protection-on-ARM" } } @@ -16,14 +18,18 @@ resource "aws_subnet" "subnet-tf" { map_public_ip_on_launch = true availability_zone = element(data.aws_availability_zones.az.names, 0) tags = { - Name = "subnet-tf" + Name = "subnet-tf" + git_org = "amckenzie7" + git_repo = "Workload-Protection-on-ARM" } } resource "aws_internet_gateway" "igw" { vpc_id = aws_vpc.vpc-tf.id tags = { - Name = "igw-tf" + Name = "igw-tf" + git_org = "amckenzie7" + git_repo = "Workload-Protection-on-ARM" } } @@ -36,6 +42,8 @@ resource "aws_default_route_table" "internet_route_table" { } tags = { - Name = "default-route-table" + Name = "default-route-table" + git_org = "amckenzie7" + git_repo = "Workload-Protection-on-ARM" } } \ No newline at end of file diff --git a/gcp/gce.tf b/gcp/gce.tf index fc15114..b7677ff 100644 --- a/gcp/gce.tf +++ b/gcp/gce.tf @@ -35,4 +35,8 @@ 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 = { + git_org = "amckenzie7" + git_repo = "Workload-Protection-on-ARM" + } }