aws-sam-cli icon indicating copy to clipboard operation
aws-sam-cli copied to clipboard

tags in samconfig.toml

Open superwese opened this issue 5 years ago • 3 comments

This is related to https://github.com/aws/aws-sam-cli/issues/2089

Describe your idea/feature/enhancement

It would be nice if tags in samconfig.toml could be passed as a list like parameter_overrides, instead of a long space separated string. It would make the config file easier to read and to maintain.

Proposal

add the ability to provide tags as list in samconfig.toml:

tags = [
    "stage=int",
    "company:application=awesome-service",
    "company:department=sales"
    ]

Things to consider:

  1. Will this require any updates to the SAM Spec

probably yes. At least a type check in the parser is required

Additional Details

superwese avatar Jan 27 '21 18:01 superwese

Thanks @superwese for the suggestion. As we already have this feature working using the string format, I tagged this as nice to have. This could be a good first issue for a contributor though. If anyone wants to implement this, keep in mind that we will have to support both formats.

mgrandis avatar Feb 04 '21 02:02 mgrandis

This is released in SAM CLI 1.25.0

wchengru avatar Jul 05 '21 21:07 wchengru

⚠️COMMENT VISIBILITY WARNING⚠️

Comments on closed issues are hard for our team to see. If you need more assistance, please either tag a team member or open a new issue that references this one. If you wish to keep having a conversation with other community members under this issue feel free to do so.

github-actions[bot] avatar Jul 05 '21 21:07 github-actions[bot]