File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
infrastructure/terraform/modules/backend-api Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ module "create_letter_template_lambda" {
1515
1616 environment_variables = {
1717 TEMPLATES_TABLE_NAME = aws_dynamodb_table.templates.name
18- SCAN_BUCKET_NAME = aws_s3_bucket.pdf_template_scan .bucket
18+ SCAN_BUCKET_NAME = module.s3bucket_pdf_template_scan .bucket
1919 }
2020
2121 execution_role_policy_document = data. aws_iam_policy_document . create_letter_template_lambda_policy . json
@@ -62,7 +62,7 @@ data "aws_iam_policy_document" "create_letter_template_lambda_policy" {
6262 ]
6363
6464 resources = [
65- " ${ aws_s3_bucket . pdf_template_scan . arn } /*" ,
65+ " ${ module . s3bucket_pdf_template_scan . arn } /*" ,
6666 ]
6767 }
6868}
Original file line number Diff line number Diff line change @@ -50,8 +50,8 @@ data "aws_iam_policy_document" "s3bucket_pdf_template_scan" {
5050 effect = " Deny"
5151 actions = [" s3:*" ]
5252 resources = [
53- aws_s3_bucket . pdf_template_scan . arn ,
54- " ${ aws_s3_bucket . pdf_template_scan . arn } /*" ,
53+ module . s3bucket_pdf_template_scan . arn ,
54+ " ${ module . s3bucket_pdf_template_scan . arn } /*" ,
5555 ]
5656 principals {
5757 type = " AWS"
You can’t perform that action at this time.
0 commit comments