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}"
}PukiWiki 1.5.3 © 2001-2020 PukiWiki Development Team. Powered by PHP 7.4.33. HTML convert time: 0.036 sec.
![[PukiWiki] [PukiWiki]](image/owl.png)