Skip to content

Commit

Permalink
fix: random_pet with LT workers under 0.13.0 (#940)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
jurgenweber authored Aug 14, 2020
1 parent 415cfca commit f45b5a1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,4 @@ eks-admin-service-account.yaml
*.iml
config-map-aws-auth*.yaml
kubeconfig_*
*.swp
3 changes: 3 additions & 0 deletions workers_launch_template.tf
Original file line number Diff line number Diff line change
Expand Up @@ -476,6 +476,9 @@ resource "random_pet" "workers_launch_template" {
)
)
}
lifecycle {
create_before_destroy = true
}
}

resource "aws_iam_instance_profile" "workers_launch_template" {
Expand Down

0 comments on commit f45b5a1

Please sign in to comment.