Skip to content

Commit

Permalink
fix: update to using string-like and fixes formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
as1729 committed Sep 6, 2024
1 parent 1d481e5 commit f99e827
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions terraform/treasury_generation_lambda_functions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@ module "lambda_function-subrecipientTreasuryReportGen" {
resources = [
"${module.reporting_data_bucket.bucket_arn}",
]
# Path: /{organization_id}/{reporting_period_id}/*
condition = {
StringEquals = {
# Path: /{organization_id}/{reporting_period_id}/*
"s3:prefix" = "*/*/*"
}
test = "StringLike"
variable = "s3:prefix"
values = "*/*/*"
}
}
AllowDownloadSubrecipientsFile = {
Expand Down Expand Up @@ -189,11 +189,11 @@ module "lambda_function-treasuryProjectFileGeneration" {
resources = [
"${module.reporting_data_bucket.bucket_arn}",
]
# Path: treasuryreports/{organization_id}/{reporting_period_id}/*
condition = {
StringEquals = {
# Path: treasuryreports/{organization_id}/{reporting_period_id}/*
"s3:prefix" = "treasuryreports/*/*/*"
}
test = "StringLike"
variable = "s3:prefix"
values = "treasuryreports/*/*/*"
}
}
AllowUploadCSVReport = {
Expand Down Expand Up @@ -296,6 +296,7 @@ module "lambda_function-cpfCreateArchive" {
resources = [
"${module.reporting_data_bucket.bucket_arn}",
]
# Path: treasuryreports/{organization_id}/{reporting_period_id}/*
condition = {
test = "StringLike"
variable = "s3:prefix"
Expand Down

0 comments on commit f99e827

Please sign in to comment.