Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prisma Cloud has created this PR to tag your IaC to Cloud resources. #596

Closed
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
14 changes: 11 additions & 3 deletions files/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,19 @@ resource "aws_s3_bucket" "data" {
tags = {
Name = "${local.resource_prefix.value}-data"
Environment = local.resource_prefix.value
yor_trace = "5970ee4f-55e8-4012-9e1a-32389e87c82d"
}
}

resource "aws_s3_bucket_object" "data_object" {
bucket = aws_s3_bucket.data.id
region = "us-west-2"
region = "us-west-2"
key = "customer-master.xlsx"
source = "resources/customer-master.xlsx"
tags = {
Name = "${local.resource_prefix.value}-customer-master"
Environment = local.resource_prefix.value
yor_trace = "e091b5d1-3a11-4817-8bdf-feecb8887364"
}
}

Expand All @@ -35,6 +37,7 @@ resource "aws_s3_bucket" "financials" {
tags = {
Name = "${local.resource_prefix.value}-financials"
Environment = local.resource_prefix.value
yor_trace = "4205fe3a-c374-4b9c-b2b1-3ff91d5a93c7"
}

}
Expand All @@ -43,7 +46,7 @@ resource "aws_s3_bucket" "operations" {
# bucket is not encrypted
# bucket does not have access logs
bucket = "${local.resource_prefix.value}-operations"
region = "us-west-2"
region = "us-west-2"
acl = "private"
versioning {
enabled = true
Expand All @@ -52,14 +55,15 @@ resource "aws_s3_bucket" "operations" {
tags = {
Name = "${local.resource_prefix.value}-operations"
Environment = local.resource_prefix.value
yor_trace = "4fe2489f-6767-4d9e-913b-97ae5a618ff9"
}

}

resource "aws_s3_bucket" "data_science" {
# bucket is not encrypted
bucket = "${local.resource_prefix.value}-data-science"
region = "us-west-2"
region = "us-west-2"
acl = "private"
versioning {
enabled = true
Expand All @@ -69,6 +73,9 @@ resource "aws_s3_bucket" "data_science" {
target_prefix = "log/"
}
force_destroy = true
tags = {
yor_trace = "7b6b9bca-36ed-4fb5-b69a-bc5a3cbbd114"
}
}

resource "aws_s3_bucket" "logs" {
Expand All @@ -90,5 +97,6 @@ resource "aws_s3_bucket" "logs" {
tags = {
Name = "${local.resource_prefix.value}-logs"
Environment = local.resource_prefix.value
yor_trace = "6358e44c-a324-4717-a73c-23a477ddf69c"
}
}
Loading