Repository navigation
Conversation
IAM Roles and Users have case insensitive tags. By not adding the `Environment` tag to the IAM Roles we avoid role creation failure where an organization are using an `environment` tag key already which they apply to all resources
npalm
self-requested a review
November 6, 2021 07:09
Member
|
Sorry for keeping the PR open so long, but need a bit more time to see the impact. |
Member
|
Just a quick update, we are rethinking our model of tagging. And only enforce the few manual tags (mainly on the instances). Sorry for keep you waiting. |
Contributor
|
We have moved to start using namespaced tags with a prefix of Other tags can be added automatically to all resources by the AWS provider using Default Tags functionality. This should mean that we no longer need to pass tags into the module and try and merge them with internal tags etc. |
Author
|
Thanks both, really good to see the continued development of this module. I'll close this PR |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Following discussion on #1328 which would break the module's functionality, this PR takes a different approach to the issue I described in #1280.
Problem Summary
Using
var.environmentto tag all resources with a key namedEnvironmentis incompatible with some organization'stagging policies. This is due to IAM Roles being case insensitive to tags, where an orgnaization is using an
environmenttag for all resources, the Roles cannot be created.Behaviour
When deploying to our stack, where we include an
environmenttag on all resources, we encounter this problem on the IAM Roles created for each Lambda:Proposed solution
Stop tagging IAM Roles with
Environmentvalue, this tag isn't required on IAM Roles to maintain the functionality of this module.