-
Notifications
You must be signed in to change notification settings - Fork 9.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added KMS alias name_prefix #5594
Conversation
} else { | ||
name = resource.UniqueId() | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
since we're now modifying what we get from the config regarding the name, we need to make sure we use the d.Id()
in resourceAwsKmsAliasRead
, because d.Get("name")
may now return ""
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do I need to make any change here? The name was in the old implementation so I just keep it. I saw similar implementation with security_group. Please let me know if I need to fix this for the merge or it's something we can deal with with another pull request.
Looks good! I left a note about the usage of name vs. Id, and I believe we'll need an update to the documentation as well before we can merge. |
Also, I ran the
|
Is this ready to be accepted? |
Hi @iceycake thanks so much for fixing up the rest of the rest as per @catsby's notes The tests now pass as follows so this looks good to merge
|
Merged in 9cfcfed |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
Instead of a static KMS alias name, it allows either name_prefix or generate unique name.