Skip to content

Instantly share code, notes, and snippets.

@sagikazarmark
Last active August 13, 2019 15:21
Show Gist options
  • Save sagikazarmark/e693e568ae79791626845749c837ed16 to your computer and use it in GitHub Desktop.
Save sagikazarmark/e693e568ae79791626845749c837ed16 to your computer and use it in GitHub Desktop.
Cloud Provider Resource Labeling

Cloud Provider Resource Labeling

Provider Maximum number Maximum key length Maximum value length Key regex
AWS 50 128 256 ^(?!aws:)[\+\-=\._:\/\@\ a-zA-Z0-9]{1,128}$1
Google Cloud 64 63 63 ^[a-z][-_a-z0-9]{1,62}$
Azure 50 512 256 ^[^<>%&\\\?\/]{1,512}$

1 Different services may have varying restrictions

Always consult official documentation (linked below).

Recommended label format

If multiple cloud providers are involved, the following format is recommended: recommended-label-format.

Notes

AWS

  • Both keys and values must be Unicode characters in UTF-8
  • Tag keys and values are case-sensitive

Google Cloud

  • International characters are allowed

Azure

Sources

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