如何解决AWS Chalice所需的AWS IAM策略
AWS Chalice
要求的IAM角色策略是什么。
Github中没有官方文档吗?
运行AWS Chalice
需要哪些权限?
解决方法
截至2020年7月9日,Github上没有正式文档,并且有Open issue on documentation regarding IAM。
所需的权限是
- API网关
- IAM
- Lambda
对我有用的政策
{
"Version": "2012-10-17","Statement": [
{
"Sid": "Stmt1471020565000","Effect": "Allow","Action": [
"iam:AttachRolePolicy","iam:DeleteRolePolicy","iam:DetachRolePolicy","iam:CreateRole","iam:PutRolePolicy","iam:GetRole","iam:PassRole"
],"Resource": [
"*"
]
},{
"Sid": "Stmt1471020565001","Action": [
"apigateway:GET","apigateway:HEAD","apigateway:POST"
],"Resource": [
"arn:aws:apigateway:ap-south-1::/restapis","arn:aws:apigateway:ap-south-1::/restapis/*/resources","arn:aws:apigateway:ap-south-1::/restapis/*/resources/*"
]
},{
"Sid": "Stmt1471020565002","Action": [
"apigateway:DELETE"
],"Resource": [
"arn:aws:apigateway:ap-south-1::/restapis/*/resources/*"
]
},{
"Sid": "Stmt1471020565003","Action": [
"apigateway:POST"
],"Resource": [
"arn:aws:apigateway:ap-south-1::/restapis/*/deployments",{
"Sid": "Stmt1471020565004","Action": [
"apigateway:PUT"
],"Resource": [
"arn:aws:apigateway:ap-south-1::/restapis/*/methods/GET","arn:aws:apigateway:ap-south-1::/restapis/*/methods/GET/*","arn:aws:apigateway:ap-south-1::/restapis/*/methods/POST","arn:aws:apigateway:ap-south-1::/restapis/*/methods/POST/*","arn:aws:apigateway:ap-south-1::/restapis/*/methods/PUT","arn:aws:apigateway:ap-south-1::/restapis/*/methods/PUT/*"
]
},{
"Sid": "Stmt1471020565005","Action": [
"apigateway:PATCH"
],"Resource": [
"arn:aws:apigateway:ap-south-1::/restapis/*"
]
},{
"Effect": "Allow","Action": "lambda:*","Resource": "*"
}
]
}
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。