gpt4 book ai didi

python - AWS Chalice所需的AWS IAM策略

转载 作者:行者123 更新时间:2023-12-02 13:45:18 25 4
gpt4 key购买 nike

IAM角色策略是什么AWS Chalice
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",
    "Effect": "Allow",
    "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",
    "Effect": "Allow",
    "Action": [
    "apigateway:DELETE"
    ],
    "Resource": [
    "arn:aws:apigateway:ap-south-1::/restapis/*/resources/*"
    ]
    },
    {
    "Sid": "Stmt1471020565003",
    "Effect": "Allow",
    "Action": [
    "apigateway:POST"
    ],
    "Resource": [
    "arn:aws:apigateway:ap-south-1::/restapis/*/deployments",
    "arn:aws:apigateway:ap-south-1::/restapis/*/resources/*"
    ]
    },
    {
    "Sid": "Stmt1471020565004",
    "Effect": "Allow",
    "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",
    "Effect": "Allow",
    "Action": [
    "apigateway:PATCH"
    ],
    "Resource": [
    "arn:aws:apigateway:ap-south-1::/restapis/*"
    ]
    },
    {
    "Effect": "Allow",
    "Action": "lambda:*",
    "Resource": "*"
    }
    ]
    }

    关于python - AWS Chalice所需的AWS IAM策略,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/63781304/

    25 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com