diff --git a/.gitignore b/.gitignore index 6b31084d05..db3aec7ca3 100644 --- a/.gitignore +++ b/.gitignore @@ -11,3 +11,4 @@ eks-admin-service-account.yaml *.iml config-map-aws-auth*.yaml kubeconfig_* +*.swp diff --git a/workers_launch_template.tf b/workers_launch_template.tf index eaf734b41f..5c328c5d3e 100644 --- a/workers_launch_template.tf +++ b/workers_launch_template.tf @@ -476,6 +476,9 @@ resource "random_pet" "workers_launch_template" { ) ) } + lifecycle { + create_before_destroy = true + } } resource "aws_iam_instance_profile" "workers_launch_template" {