Skip to content
This repository has been archived by the owner on Jan 12, 2021. It is now read-only.

Mysql: not updating user password when changed #63

Open
michaelmass opened this issue Dec 19, 2018 · 0 comments
Open

Mysql: not updating user password when changed #63

michaelmass opened this issue Dec 19, 2018 · 0 comments

Comments

@michaelmass
Copy link

Terraform Version

Terraform v0.11.11
+ provider.mysql v1.5
+ provider.random v2.00

Affected Resource(s)

List the resources as a list:

  • mysql_user

Terraform Configuration Files

resource "mysql_user" "default" {
  user               = "${format("%.32s", var.name)}"
  host               = "%"
  plaintext_password = "${random_string.user_password.result}"

  depends_on = ["aws_rds_cluster_instance.default"]

  lifecycle = {
    prevent_destroy = true
  }
}

Expected Behavior

What should have happened?

The mysql user password should be updated when the random_string.user_password.result changes.

Actual Behavior

What actually happened?

The mysql user password isn't updated.

Important Factoids

This operation is done on a resource aws_rds_cluster_instance.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant