amazon-web-services - "Fn::Join"在配置文件中指什么?

标签 amazon-web-services aws-cloudformation serverless-framework

我是无服务器新手,但看看这个配置文件

provider:
  name: aws
  runtime: nodejs10.x
  stage: dev
  region: us-east-1

# you can add statements to the Lambda function's IAM Role here
#  iamRoleStatements:
#    - Effect: "Allow"
#      Action:
#        - "s3:ListBucket"
#      Resource: { "Fn::Join" : ["", ["arn:aws:s3:::", { "Ref" : "ServerlessDeploymentBucket" } ] ]  }
#    - Effect: "Allow"
#      Action:
#        - "s3:PutObject"
#      Resource:
#        Fn::Join:
#          - ""
#          - - "arn:aws:s3:::"
#            - "Ref" : "ServerlessDeploymentBucket"
#            - "/*"

此资源是否指fnproject

我查看了aws-resource-type但找不到引用信息。

最佳答案

Fn::Join 是一个内部函数,它将一组值附加到单个值中,并用指定的分隔符分隔。如果分隔符是空字符串,则该组值将不带分隔符连接。

您可以在 joinpseudo parameters 中使用不同的内部函数以及。 欲了解更多信息,请查看official AWS documentation

关于amazon-web-services - "Fn::Join"在配置文件中指什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58799497/

相关文章:

aws-cloudformation - Cloudformation 堆栈可以知道它是否正在创建或更新吗?

amazon-web-services - 使用 AWS Elastic Beanstalk/EC2 时如何查看服务器日志?我需要使用 SSH 吗?

amazon-web-services - 如何将我的结构放入Rust中用于AWS Kinesis的PutRecordInput中?

amazon-web-services - 有什么方法可以在 Athena 数据库中同时运行多个 SQL 查询

version - 如何检查我的无服务器 cli 版本?

amazon-web-services - 如何使用 Lambda 在无服务器应用程序中读取 POST 参数?

node.js - 了解无服务器框架中预定事件的输入?

amazon-web-services - 如何在 Json 和 Map<String, AttributeValue> 之间进行转换

aws-cloudformation - 如何使用 Serverless Framework 设置 API 网关的描述?

json - 创建 AWS::KMS::Key 时出现 MalformedPolicyDocumentException