-
Notifications
You must be signed in to change notification settings - Fork 63
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Some resources like AWS::Glue::Job or AWS::Glue::Trigger expect a Json (Dict) as Tags Property while others like AWS::S3::Bucket or AWS::SQS::Queue expect a List. Use the more compact Dict syntax in all Tags Properties.
When using tags in several place on a YAML file it's useful to use anchor/alias. With two types of Tags it's necessary to define two series of tags, one for properties that expect Dict and one for properties that expect List.
Example of Dict and List syntax for the same 5 tags:
tagDict: &tagDict
global.app: ${self:custom.service}
global.env: dev
global.opco: axa-be
global.project: ${self:custom.project}
global.DCS: datalab
tagList: &tagList
- Key: global.app
Value: ${self:custom.service}
- Key: global.env
Value: dev
- Key: global.opco
Value: axa-be
- Key: global.project
Value: ${self:custom.project}
- Key: global.DCS
Value: datalab
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request