diff --git a/template.yaml b/template.yaml index d8b018f..969a324 100644 --- a/template.yaml +++ b/template.yaml @@ -137,6 +137,9 @@ Resources: Condition: CreateWeb Properties: BucketName: !Join ["-", [!Ref WebsiteS3BucketName, "log"]] + OwnershipControls: + Rules: + - ObjectOwnership: BucketOwnerPreferred IntelligentTieringConfigurations: - Id: !Join ["-", [!Ref WebsiteS3BucketName, "log"]] Status: Enabled @@ -436,4 +439,4 @@ Outputs: CreateWeb, !Sub "https://${CloudfrontDistribution.DomainName}/index.html", "N/A", - ] + ] \ No newline at end of file