fix: random_pet with LT workers under 0.13.0 (#940)

Fix for:
Error: Provider produced inconsistent final plan

When expanding the plan for module.eks.random_pet.workers_launch_template[0]
to include new values learned so far during apply, provider
"registry.terraform.io/hashicorp/random" changed the planned action from
CreateThenDelete to DeleteThenCreate.
This commit is contained in:
Jürgen W
2020-08-14 23:23:17 +10:00
committed by GitHub
parent 415cfca9af
commit f45b5a1d46
2 changed files with 4 additions and 0 deletions

View File

@@ -476,6 +476,9 @@ resource "random_pet" "workers_launch_template" {
)
)
}
lifecycle {
create_before_destroy = true
}
}
resource "aws_iam_instance_profile" "workers_launch_template" {