mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-30 13:10:47 +00:00
correct more terraform syntax
This commit is contained in:
parent
23f0d87504
commit
e78900f0b6
1 changed files with 1 additions and 2 deletions
|
|
@ -131,8 +131,7 @@ resource "aws_s3_bucket_policy" "bucket_policy" {
|
||||||
{
|
{
|
||||||
Effect = "Allow"
|
Effect = "Allow"
|
||||||
Principal = {
|
Principal = {
|
||||||
AWS = aws_cloudfront_origin_access_identity.oai[each.key]
|
AWS = aws_cloudfront_origin_access_identity.oai[each.key].iam_arn
|
||||||
.iam_arn
|
|
||||||
}
|
}
|
||||||
Action = "s3:GetObject"
|
Action = "s3:GetObject"
|
||||||
Resource = "${each.value.bucket_arn}/*"
|
Resource = "${each.value.bucket_arn}/*"
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue