-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: More compatibility fixes for Terraform v0.13 and aws v3 #976
Conversation
``` Error: Provider produced inconsistent final plan When expanding the plan for module.eks.aws_autoscaling_group.workers[0] to include new values learned so far during apply, provider "registry.terraform.io/hashicorp/aws" produced an invalid new value for .tags: length changed from 4 to 6. ``` hashicorp/terraform-provider-aws#14085
@dpiddockcmp looks Terraform 13.1 was released so should solve mentioned bug https://github.com/hashicorp/terraform/releases/tag/v0.13.1 |
@barryib are we good to merge this? |
Please let me test this tonight with TF 0.13.1 |
@dpiddockcmp LGTM. Just tested an upgrade TF 0.12 to TF 0.13.1 without error. Shouldn't we change the Terraform required version to avoid TF 0.13.0 ( |
That version constraint can't be met. It can't be |
Ok. LGTM. |
…rm-aws-modules#976) Additional support for Terraform v0.13 and aws v3! - The update to the vpc module in examples was, strictly speaking, unnecessary but it adds the terraform block with supported versions. - Update for iam module in the example was very necessary to support new versions - Workaround for "Provider produced inconsistent final plan" when creating ASGs at the same time as the cluster. See hashicorp/terraform-provider-aws#14085 for full details. - Blacklist 0.13.0 as it was too strict when migrating from aws v2 to v3 about dropped attributes.
I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
PR o'clock
Description
Terraform v0.13 and aws v3 support time!
terraform
block with supported versions.When upgrading an existing TF 0.12/aws 2 cluster to TF 0.13/aws 3 you currently have to manually edit the state file to delete removed attributes. Should be fixed in v0.13.1 hashicorp/terraform#25779 . For the basic example I had to remove the following attributes:
aws_availability_zones
:blacklisted_names
andblackedlisted_zone_ids
aws_iam_instance_profile
:roles
(Module Issues w/ Terraform v0.13.0 #974)You also need to mess around with
replace-provider
a lot:Checklist