Merge pull request #873 from Hestia-Homes/deploy-fastapi-with-terraform

Deploy fastapi with terraform: syntax fix
This commit is contained in:
Jun-te Kim 2026-03-13 14:16:12 +00:00 committed by GitHub
commit 0293e968b6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -131,8 +131,7 @@ resource "aws_s3_bucket_policy" "bucket_policy" {
{
Effect = "Allow"
Principal = {
AWS = aws_cloudfront_origin_access_identity.oai[each.key]
.iam_arn
AWS = aws_cloudfront_origin_access_identity.oai[each.key].iam_arn
}
Action = "s3:GetObject"
Resource = "${each.value.bucket_arn}/*"