resource "random_string" "example" { length = 16 lifecycle { ignore_changes = all } }
terraform state pull > state.json vim state.json -- - "serial": 10, + "serial": 11, -- terraform state push state.json
terraform import random_string.example abcde123
resource "random_string" "example" { length = 16 lifecycle { ignore_changes = all } } output "example" { value = "${random_string.example.result}" }
resource "random_string" "example" { length = 16 lifecycle { ignore_changes = [ "*" ] } } output "example" { value = "${random_string.example.result}" }