Skip to content

Make type of Tags property consistent among services #248

@ivankeller

Description

@ivankeller

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions