18 lines
438 B
YAML

service: service
provider:
name: aws
runtime: nodejs12.x
custom:
importedFile: ${file(config.json)}
importedFileWithKey: ${file(config.json):foo}
awsVariable: ${AWS::Region}
cloudFormationReference: ${AnotherResource}
selfReference: ${self:custom.importedFileWithKey}
serviceReference: ${self:}
nestedRef: nestedVal
nestedVal:
prop: resolvedNested
nestedReference: ${self:custom.${self:custom.nestedRef}.prop}