-
Notifications
You must be signed in to change notification settings - Fork 90
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
Reset es password #642
Reset es password #642
Conversation
if isResetting != nil && *isResetting { | ||
planVal := resp.AttributePlan.(types.String) | ||
planVal.Unknown = true | ||
resp.AttributePlan = planVal |
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.
resp.AttributePlan = planVal | |
resp.AttributePlan = types.String{Unknown: true} |
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.
Sorry, the suggestion doesn't reflect the all proposed changes. planVal
can be totally removed.
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.
All good. Good pickup, I was testing something out here and forgot to revert it.
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.
👍
Description
Adds a
reset_elasticsearch_password
attribute to the deployment resource, when true this explicitly resets the password, updating the value in state with the new credentials.Related Issues
Fixes #99
Motivation and Context
With the migration to 0.6 and higher requiring re-importing existing deployments, which in turn does not include the current elastic user, customers need a path to programatically update the credentials in TF state.
How Has This Been Tested?
Acceptance tests, manual tests.
Types of Changes
Readiness Checklist