Parameters and Tags
For more complex templates, tags and intrinsic functions will be used to keep a cleaner template.
Shade will parse !Sub and !Ref tags using the parameters defined in the import configuration.
If we have the following template.yaml file.
Shade will use the value defined in the import wizard, which has been defaulted to local.
template.yaml
AWSTemplateFormatVersion: 2010-09-09
Description: >-
hello-world-shade
Transform:
- AWS::Serverless-2016-10-31
Parameters:
Environment:
Type: String
Default: local
Resources:
HelloWorldSQS:
Type: AWS::SQS::Queue
Properties:
QueueName: !Sub ${Environment}-hello-world-sqs
And the resulting output queue.
