gpt4 book ai didi

amazon-web-services - AWS YAML 存储桶策略语法无效

转载 作者:行者123 更新时间:2023-12-03 07:12:57 26 4
gpt4 key购买 nike

尝试部署此部分时收到错误消息:

  OutBucketPolicyCredentials:
Type: AWS::S3::BucketPolicy
Properties:
Bucket:
Ref: "SnowflakeStagingBucket2"
PolicyDocument:
Statement:
-
Action:
- "s3:GetObject"
Effect: "Allow"
Resource:
Fn::Join:
- ""
-
- "arn:aws:s3:::"
-
Ref: "SnowflakeStagingBucket2"
- "/*"
Principal: "di-snowflake-shipper-ShipperRole-1AVH7OJ0CDNSY"

为什么语法错误?

最佳答案

评论删除了格式,所以我只是在此处重新发布。我假设 di-snowflake-shipper-ShipperRole-1AVH7OJ0CDNSY 是 IAM 角色,请尝试使用以下代码片段。

 Principal:
AWS:
- "arn:aws:iam::${AWS::AccountId}:role/di-snowflake-shipper-ShipperRole-1AVH7OJ0CDNSY"

关于amazon-web-services - AWS YAML 存储桶策略语法无效,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52626392/

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