As for title, I created a website using S3 and Cloudfront as infrastructure. I only have the default Cloudfront policy and I have no idea how to make my objects in the S3 “interact” with each other.
How do I update this policy so that my index.html can access CSS and JavaScript files by referencing them in the HTML?
{
"Version": "2008-10-17",
"Id": "PolicyForCloudFrontPrivateContent",
"Statement": [
{
"Sid": "1",
"Effect": "Allow",
"Principal": {
"AWS": "arn:aws:iam::cloudfront:user/CloudFront Origin Access Identity [porcoddio-REDACTED]"
},
"Action": "s3:GetObject",
"Resource": "arn:aws:s3:::www.redacted.com/*"
}
]
}
Thanks in advance,
me
I tried modifying the policy but I am too stupid or lazy to read all the AWS documentation at the moment, hence I failed.
awshit is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.