AWS/AWS Identity and Access Management
IAM policy for cloudfront invalidation
워니주니구니
2022. 7. 22. 09:25
728x90
SMALL
- 개요
CloudFront에서 S3 object에 대한 cache를 invalidation 하는 IAM policy 예제 이다.
- IAM Policy
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"s3:ListBucket"
],
"Resource": "arn:aws:s3:::test"
},
{
"Effect": "Allow",
"Action": [
"s3:PutObject",
"s3:GetObject",
"s3:DeleteObject"
],
"Resource": "arn:aws:s3:::test/*"
},
{
"Effect": "Allow",
"Action": [
"cloudfront:CreateInvalidation",
"cloudfront:GetInvalidation",
"cloudfront:ListInvalidations"
],
"Resource": "*"
}
]
}
728x90
LIST