在Terraform中,是否可以设置属性以使其不触发资源更新?
示例:
resource "google_cloudfunctions_function" "sometimes_changes" {
...
# label the function with timestamp - don't let this trigger an update.
labels = {
timestamp = timestamp
}
}
答案 0 :(得分:0)
resource "google_cloudfunctions_function" "sometimes_changes" {
...
lifecycle {
ignore_changes = [
labels,
]
}
}