Skip to content

Conversation

@theburningmonk
Copy link
Collaborator

PR for #166 now that CloudFormation supports tagging for Step Functions

@theburningmonk theburningmonk requested a review from horike37 March 14, 2019 19:50
@noahw3
Copy link

noahw3 commented Mar 14, 2019

Looks like this matches the cloudformation template exactly, but it might be nicer syntactically to define the tags as a dictionary (like how lambdas work) and then internally convert it to the array of key/value pairs?

Ie instead of

tags:
  -
    Key: keyname1
    Value: value1
  -
    Key: keyname2
    Value: value2

more like

tags:
  keyname1: value1
  keyname2: value2

@theburningmonk
Copy link
Collaborator Author

@noahw3 I thought about that too, but I have actually seen teams use : as delimiter in the key. There's nothing stopping us from still using : as delimiter though, e.g. my:namespace:for:tags:value => { Key: "my:namespace:for:tags", Value: "value" } but it might look a bit old.

But what if Value is an ARN which is also delimited by :? It would break our parsing. Open to suggestions as to how we might address that.

@noahw3
Copy link

noahw3 commented Mar 14, 2019

If a special character is needed in the actual value (for either key or value), quoting it should be sufficient? YAML supports that.

tags:
  keyname1: "value1:append:all:the:things:with:colons:"
  "key:name2": value2

@noahw3
Copy link

noahw3 commented Mar 14, 2019

@theburningmonk
Copy link
Collaborator Author

@noahw3 ahh, I completely misunderstood you! You meant treat it as an object instead of array, of course, that makes sense :-D

Copy link
Collaborator

@horike37 horike37 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM @theburningmonk 👍 💯 and thank you for the suggestion @noahw3 😄

@horike37 horike37 merged commit b59baed into serverless-operations:master Mar 16, 2019
@theburningmonk theburningmonk deleted the feature/support_tagging branch March 16, 2019 01:55
@theburningmonk
Copy link
Collaborator Author

🎉 This PR is included in version 1.15.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

ss-betseqnzr pushed a commit to BetSEQNZR/serverless-step-functions that referenced this pull request Sep 8, 2023
…ure/support_tagging

Feature/support tagging
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants