AWS权限:Lambda访问被拒绝S3 - 空宝网


AWS权限:Lambda访问被拒绝S3

解决方案应该像改变你的方式一样简单LambdaExecutionRole:

LambdaExecutionRole:
Description: Creating service role in IAM for AWS Lambda
Type: AWS::IAM::Role
Properties:
RoleName: !Sub ‘CodeStar-${ProjectId}-Execution${Stage}’
AssumeRolePolicyDocument:
Statement:
– Effect: Allow
Principal:
Service: [lambda.amazonaws.com]
Action: sts:AssumeRole
Path: /
ManagedPolicyArns:
– arn:aws:iam::aws:policy/service-role/AWSLambdaBasicExecutionRole
– arn:aws:iam::aws:policy/AmazonS3FullAccess # <== Add # PermissionsBoundary: !Sub ... # <== Comment out 如果这样可行,您可以尝试将S3权限限制为特定存储桶,但要开始尝试添加AmazonS3FullAccess策略并注释掉PermissionsBoundary。

【券后价】仅9.90元,点击购买
【爆款推荐】sakose凡士林润唇膏女保湿滋润补水唇部护理防干裂唇膜男口红打底
【在售价】原价39.90元,
【券后价】仅9.90元
【立即领券】点击链接即可领券购买:https://s.click.taobao.com/b2XHNyv
【立即下单】【立即下单】点击链接立即下单:https://s.click.taobao.com/wVUHNyv


喜欢 (0)
[请支持作者一杯咖啡,谢谢]
分享 (0)


您必须 登录 才能发表评论!