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
6 changes: 4 additions & 2 deletions IAC/ec2.tf
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ resource "aws_instance" "web_host" {
instance_type = "t2.nano"

vpc_security_group_ids = [
"${aws_security_group.web-node.id}"]
"${aws_security_group.web-node.id}"]
subnet_id = "${aws_subnet.web_subnet.id}"
user_data = <<EOF
#! /bin/bash
Expand All @@ -19,7 +19,7 @@ echo "<h1>Deployed via Terraform</h1>" | sudo tee /var/www/html/index.html
EOF
tags = merge({
Name = "${local.resource_prefix.value}-ec2"
}, {
}, {
git_commit = "d68d2897add9bc2203a5ed0632a5cdd8ff8cefb0"
git_file = "terraform/aws/ec2.tf"
git_last_modified_at = "2020-06-16 14:46:24"
Expand All @@ -28,5 +28,7 @@ EOF
git_org = "bridgecrewio"
git_repo = "terragoat"
yor_trace = "347af3cd-4f70-4632-aca3-4d5e30ffc0b6"
}, {
jmtags = "12345"
})
}
21 changes: 16 additions & 5 deletions IAC/s3.tf
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ resource "aws_s3_bucket" "data" {
tags = merge({
Name = "${local.resource_prefix.value}-data"
Environment = local.resource_prefix.value
}, {
}, {
git_commit = "4d57f83ca4d3a78a44fb36d1dcf0d23983fa44f5"
git_file = "terraform/aws/s3.tf"
git_last_modified_at = "2022-05-18 07:08:06"
Expand All @@ -17,6 +17,8 @@ resource "aws_s3_bucket" "data" {
git_org = "bridgecrewio"
git_repo = "terragoat"
yor_trace = "0874007d-903a-4b4c-945f-c9c233e13243"
}, {
jmtags = "12345"
})
}

Expand All @@ -27,7 +29,7 @@ resource "aws_s3_bucket_object" "data_object" {
tags = merge({
Name = "${local.resource_prefix.value}-customer-master"
Environment = local.resource_prefix.value
}, {
}, {
git_commit = "d68d2897add9bc2203a5ed0632a5cdd8ff8cefb0"
git_file = "terraform/aws/s3.tf"
git_last_modified_at = "2020-06-16 14:46:24"
Expand All @@ -36,6 +38,8 @@ resource "aws_s3_bucket_object" "data_object" {
git_org = "bridgecrewio"
git_repo = "terragoat"
yor_trace = "a7f01cc7-63c2-41a8-8555-6665e5e39a64"
}, {
jmtags = "12345"
})
}

Expand All @@ -49,7 +53,7 @@ resource "aws_s3_bucket" "financials" {
tags = merge({
Name = "${local.resource_prefix.value}-financials"
Environment = local.resource_prefix.value
}, {
}, {
git_commit = "d68d2897add9bc2203a5ed0632a5cdd8ff8cefb0"
git_file = "terraform/aws/s3.tf"
git_last_modified_at = "2020-06-16 14:46:24"
Expand All @@ -58,6 +62,8 @@ resource "aws_s3_bucket" "financials" {
git_org = "bridgecrewio"
git_repo = "terragoat"
yor_trace = "0e012640-b597-4e5d-9378-d4b584aea913"
}, {
jmtags = "12345"
})

}
Expand All @@ -74,7 +80,7 @@ resource "aws_s3_bucket" "operations" {
tags = merge({
Name = "${local.resource_prefix.value}-operations"
Environment = local.resource_prefix.value
}, {
}, {
git_commit = "d68d2897add9bc2203a5ed0632a5cdd8ff8cefb0"
git_file = "terraform/aws/s3.tf"
git_last_modified_at = "2020-06-16 14:46:24"
Expand All @@ -83,6 +89,8 @@ resource "aws_s3_bucket" "operations" {
git_org = "bridgecrewio"
git_repo = "terragoat"
yor_trace = "29efcf7b-22a8-4bd6-8e14-1f55b3a2d743"
}, {
jmtags = "12345"
})
}

Expand All @@ -107,6 +115,7 @@ resource "aws_s3_bucket" "data_science" {
git_org = "bridgecrewio"
git_repo = "terragoat"
yor_trace = "9a7c8788-5655-4708-bbc3-64ead9847f64"
jmtags = "12345"
}
}

Expand All @@ -128,7 +137,7 @@ resource "aws_s3_bucket" "logs" {
tags = merge({
Name = "${local.resource_prefix.value}-logs"
Environment = local.resource_prefix.value
}, {
}, {
git_commit = "d68d2897add9bc2203a5ed0632a5cdd8ff8cefb0"
git_file = "terraform/aws/s3.tf"
git_last_modified_at = "2020-06-16 14:46:24"
Expand All @@ -137,5 +146,7 @@ resource "aws_s3_bucket" "logs" {
git_org = "bridgecrewio"
git_repo = "terragoat"
yor_trace = "01946fe9-aae2-4c99-a975-e9b0d3a4696c"
}, {
jmtags = "12345"
})
}
5 changes: 5 additions & 0 deletions IAC/s3bucket.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@ Resources:
WebsiteConfiguration:
IndexDocument: index.html
ErrorDocument: error.html
Tags:
- Key: yor_trace
Value: 9055c699-9192-43c7-87a9-62a6cda51120
- Key: jmtags
Value: "12345"
DeletionPolicy: Retain
Outputs:
WebsiteURL:
Expand Down