Created
July 5, 2018 02:44
-
-
Save shiro01/8ecb9429c3e5b0736da942542628fa36 to your computer and use it in GitHub Desktop.
Lambda@Edge用のロール
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://docs.aws.amazon.com/ja_jp/AmazonCloudFront/latest/DeveloperGuide/lambda-edge-permissions.html | |
ポリシー | |
{ | |
"Version": "2012-10-17", | |
"Statement": [ | |
{ | |
"Effect": "Allow", | |
"Action": [ | |
"logs:CreateLogGroup", | |
"logs:CreateLogStream", | |
"logs:PutLogEvents" | |
], | |
"Resource": "*" | |
}, | |
{ | |
"Effect": "Allow", | |
"Action": [ | |
"lambda:GetFunction", | |
"lambda:EnableReplication*", | |
"iam:CreateServiceLinkedRole", | |
"cloudfront:CreateDistribution", | |
"cloudfront:UpdateDistribution" | |
], | |
"Resource": "*" | |
} | |
] | |
} | |
信頼関係 | |
{ | |
"Version": "2012-10-17", | |
"Statement": [ | |
{ | |
"Effect": "Allow", | |
"Principal": { | |
"Service": [ | |
"lambda.amazonaws.com", | |
"edgelambda.amazonaws.com" | |
] | |
}, | |
"Action": "sts:AssumeRole" | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment