Skip to content

Commit

Permalink
Add HTTPS enforcement to CUR bucket policy (#64)
Browse files Browse the repository at this point in the history
  • Loading branch information
LiamMacP authored Apr 16, 2024
1 parent 5ca97a9 commit 36f6714
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions modules/aws/cost_usage_reports/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,20 @@ resource "aws_s3_bucket_policy" "cur_S3_bucket_policy" {
"aws:SourceArn" : "arn:aws:cur:us-east-1:${var.billing_account}:definition/*"
}
}
},
{
"Effect" : "Deny",
"Principal" : "*",
"Action" : "s3:*",
"Resource" : [
"arn:aws:s3:::cid-${var.billing_account}-central-finops-local",
"arn:aws:s3:::cid-${var.billing_account}-central-finops-local/*",
],
"Condition" : {
"Bool" : {
"aws:SecureTransport" = "false"
}
}
}
]
})
Expand Down

0 comments on commit 36f6714

Please sign in to comment.