наша служба безопасности развернула некоторые политики, и при запуске плана terraform terraform обнаружил отклонение и перезаписывает политики. Итак, чтобы сохранить политики, я включил в свой код smart_tiering, который поставляется с версией провайдера aws: 1.51.
Итак, когда я включаю провайдера aws 2.15 в мой код, план терпит неудачу, потому что для protect_destroy задано значение true для aws_elasticache_replication_group. это разрушит наш кеш, из-за чего мы потеряем все наши данные конвейера. я на терраформе 0.11.13.
Как я могу справиться с приведенными ниже ошибками. Я прочитал в одной из проблем terraform, что обновление до terraform 0.12.2 должно работать. но мы в режиме сдерживания. Таким образом, более простой обходной путь будет полезен. заранее спасибо.
Добавление ниже внесло ошибку:
id = "intu-lifecycle-s3-int-tier"
enabled = true
noncurrent_version_transition {
days = 0
storage_class = "INTELLIGENT_TIERING"
}
transition {
days = 5
storage_class = "INTELLIGENT_TIERING"
}
}```
Error: Error running plan: 3 error(s) occurred:
* module.swimlane.module.elastiCache.aws_elasticache_replication_group.spinnaker_cache: 1 error(s) occurred:
* module.swimlane.module.elastiCache.aws_elasticache_replication_group.spinnaker_cache: aws_elasticache_replication_group.spinnaker_cache: the plan would destroy this resource, but it currently has lifecycle.prevent_destroy set to true. To avoid this error and continue with the plan, either disable lifecycle.prevent_destroy or adjust the scope of the plan using the -target flag.
* module.swimlane.module.elastiCache.aws_elasticache_replication_group.clouddriver_cache: 1 error(s) occurred:
* module.swimlane.module.elastiCache.aws_elasticache_replication_group.clouddriver_cache: aws_elasticache_replication_group.clouddriver_cache: the plan would destroy this resource, but it currently has lifecycle.prevent_destroy set to true. To avoid this error and continue with the plan, either disable lifecycle.prevent_destroy or adjust the scope of the plan using the -target flag.
* module.swimlane.module.igor.aws_elasticache_replication_group.igor_cache: 1 error(s) occurred:
module.swimlane.module.igor.aws_elasticache_replication_group.igor_cache: aws_elasticache_replication_group.igor_cache: the plan would destroy this resource, but it currently has lifecycle.prevent_destroy set to true. To avoid this error and continue with the plan, either disable lifecycle.prevent_destroy or adjust the scope of the plan using the -target flag.