Skip to content

Commit

Permalink
AB: add lifecycle to ignore changes on admin_password
Browse files Browse the repository at this point in the history
  • Loading branch information
octopus20 authored and Binsabbar committed Jan 4, 2023
1 parent f7dd210 commit c91e596
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion modules/mysql/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@ resource "oci_mysql_mysql_db_system" "mysql_db_system" {

admin_password = each.value.admin_password
admin_username = lookup(each.value.optionals, "username", "admin")

lifecycle {
ignore_changes = [admin_password]
}
shape_name = lookup(each.value.optionals, "shape_name", local.shapes.small)
configuration_id = lookup(each.value.optionals, "configuration_id", local.configurations_id.small)

Expand Down

0 comments on commit c91e596

Please sign in to comment.