Skip to content

Commit

Permalink
fix the s3 bucket ownershipissue
Browse files Browse the repository at this point in the history
rever to previous version

fix the issue associated with s3 block ownership
  • Loading branch information
EC2 Default User authored and gitvchandra committed Apr 26, 2023
1 parent 3f2d951 commit 3b5d98e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -436,4 +439,4 @@ Outputs:
CreateWeb,
!Sub "https://${CloudfrontDistribution.DomainName}/index.html",
"N/A",
]
]

0 comments on commit 3b5d98e

Please sign in to comment.