【发布时间】:2019-11-11 19:24:49
【问题描述】:
我是 Serverless 的新手,但请看一下这个配置文件
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是一个 cloudformation 内部函数,它连接字符串以创建单个字符串。有很多关于它的文档。
标签: amazon-web-services amazon-cloudformation serverless-framework