-
Notifications
You must be signed in to change notification settings - Fork 118
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
Scrub ID for random_string resource #18
Conversation
@apparentlymart thoughts? |
Hi @Ginja! Thanks for working on this, and sorry for the late response. Looking at this resource again, I realize that it doesn't actually use the saved id value at all, and so it really doesn't matter what is stored in here. I assume your goal here was to just avoid showing the generated random string in the log output, in which case maybe it'd be simpler to just set the id to a hard-coded value (like
What do you think? I know it's been a while since you submitted this so if you no longer have time to work on this please let me know and I can work on a simplified version myself when I get some spare moments. |
No problem! I didn't realize it could've been that simple. I thought all IDs needed to be unique. I'll submit a patch to this PR soon. Thanks for the tip. |
6efa2d7
to
bccf3aa
Compare
Done :) I also went ahead and just squashed the two commits to avoid confusion. |
Hi @Ginja! Thanks for the updated version. Although we do document that Because of that, we'll need to make a major release in order to incorporate this. This is not a big problem, but we have some other changes that will warrant a major version bump coming up as part of our configuration language improvement project, so if it's okay with you I'd like to hold this for a little while so we can release these things together. The timeline here would be at some point in the next few months, depending on where some other work lands in Terraform Core. Thanks again for working on this! |
No problem! Sounds good to me. |
can't wait |
This is a problem for us too. Do we have any ETA for this being merged? |
I think setting the ID to "none" is not really a good approach. My concern is that it may hurt the "consistency" with the way how resources are managed. For example, |
See my PR above to address the issue of not setting the random_string id to ‘none’. The way I see it working the random_password resource should never really require an ID so really does address the issue. |
Hi @Ginja! |
bccf3aa
to
ac99706
Compare
@mildwonkey Done 😃 |
I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active contributions. |
Fixes #17
Sets the ID for
random_string
resources to"none"
.