7
5

More than 5 years have passed since last update.

CloudfrontでIAMユーザにCache Invalidationのみをさせる方法

Posted at

実現したいこと

 IAMユーザにキャッシュ失効(Cache Invalidation)を実行させたい。
 Cloudfrontの設定は変更させない

ポリシーJSON


{
    "Statement": [
        {
            "Action": [
                "cloudfront:CreateInvalidation",
                "cloudfront:GetDistribution",
                "cloudfront:GetInvalidation",
                "cloudfront:GetStreamingDistribution",
                "cloudfront:GetDistributionConfig",
                "cloudfront:ListDistributions",
                "cloudfront:ListInvalidations",
                "cloudfront:ListStreamingDistributions"
            ],
            "Effect": "Allow",
            "Resource": "*"
        }
    ]

必要に応じてS3へアクセス権限も組み合わせるとよいです。
特定のDistribution以外を非表示にする方法ないかな。

Amazon Cloudfront Document

7
5
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
7
5