File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
terraform/operations-account Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -32,6 +32,9 @@ locals {
32
32
app_name = " octk-aws-sea-billing-reports"
33
33
}
34
34
35
+ resource "aws_s3_bucket" "quarterly_reports_bucket" {
36
+ bucket = " bcgov-quarterly-reports-${ data . aws_caller_identity . current . account_id } -${ data . aws_region . current . name } "
37
+ }
35
38
resource "aws_ses_email_identity" "source_email_address" {
36
39
email = " info@cloud.gov.bc.ca"
37
40
}
@@ -125,6 +128,7 @@ resource "aws_iam_policy" "ecs_task_access_policies" {
125
128
Effect = " Allow" ,
126
129
Action = [
127
130
" s3:Get*" ,
131
+ " s3:PutObject" ,
128
132
" s3:List*"
129
133
],
130
134
Resource = [" *" ] // TODO: Too relaxed. Need to revise for LZ deployment
@@ -653,6 +657,10 @@ resource "aws_cloudwatch_event_target" "billing_reports_quarterly_target" {
653
657
{
654
658
" name" = " CMK_SSE_KMS_ALIAS"
655
659
" value" = " arn:aws:kms:ca-central-1:${ var . lz_mgmt_account_id } :alias/BCGov-BillingReports"
660
+ },
661
+ {
662
+ " name" = " QR_S3_Bucket"
663
+ " value" = " ${ aws_s3_bucket . quarterly_reports_bucket . bucket } "
656
664
}
657
665
],
658
666
}]
You can’t perform that action at this time.
0 commit comments