https://pulumi.com logo
#general
Title
# general
f

fancy-judge-41348

08/25/2021, 4:58 PM
Hi guys, when creating a CloudFront distribution with an S3 bucket, is there anyway to automatically update the bucket's policy like selecting this option from the UI?
b

billowy-army-68599

08/25/2021, 5:02 PM
there's no automagic way to do it, you need to define your bucket policy in code: https://aws.amazon.com/premiumsupport/knowledge-center/cloudfront-access-to-amazon-s3/
❤️ 1
f

fancy-judge-41348

08/25/2021, 5:02 PM
Alright, thank you 😄