Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions aws/arm_launch_template.tf
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,8 @@ resource "aws_launch_template" "arm_template" {
Name = "arm-instance"
}
}
tags = {
git_org = "amckenzie7"
git_repo = "Workload-Protection-on-ARM"
}
}
8 changes: 6 additions & 2 deletions aws/ec2.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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"
}
}
16 changes: 12 additions & 4 deletions aws/vpc.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}

Expand All @@ -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"
}
}

Expand All @@ -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"
}
}
4 changes: 4 additions & 0 deletions gcp/gce.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}