While going through serverless basic setup, I came across a YAML file that has two consecutive - in the definition.
Following is the YAML
# serverless.yml
service: myService
provider:
name: aws
iam:
role:
statements:
- Effect: 'Allow'
Action:
- 's3:ListBucket'
# You can put CloudFormation syntax in here. No one will judge you.
# Remember, this all gets translated to CloudFormation.
Resource: { 'Fn::Join': ['', ['arn:aws:s3:::', { 'Ref': 'ServerlessDeploymentBucket' }]] }
- Effect: 'Allow'
Action:
- 's3:PutObject'
Resource:
Fn::Join:
- ''
- - 'arn:aws:s3:::'
- 'Ref': 'ServerlessDeploymentBucket'
- '/*'
functions:
functionOne:
handler: handler.functionOne
memorySize: 512
Here we can see that in - - 'arn:aws:s3:::' there are two consecutive -. Can somebody help me understand what does that mean?
I'm referring to https://www.serverless.com/framework/docs/providers/aws/guide/functions/.
Thanks in advance.