Terraform-aws-eks: Error when upgrading from 1.4 to 1.5 (and how we solved it)

Created on 30 Aug 2018  路  6Comments  路  Source: terraform-aws-modules/terraform-aws-eks

This is just to let you know an issue upgrading from 1.4 to 1.5.

As HTTP provider was removed in 1.5, and if you applied this module with version 1.4 and then upgraded to 1.5, the HTTP dependency is still stored in tfstate file and it breaks when terraform plan with message

 `Error: Error asking for user input: 1 error(s) occurred:

* module.eks.data.http.workstation_external_ip: configuration for module.eks.provider.http is not present; a provider configuration block is required for all operations'

The solution is adding the dependency to the local copy of module, running terraform apply( it cleans the dependency from the tsfile ) and then removing it.

I understand this is more a terraform issue, but maybe is useful for someone upgrading.

Environment details

  • Affected module version: 1.5
  • OS: any
  • Terraform version: 0.11.7

Most helpful comment

I found this ticket useful, may be worth noting in a Release Notes section or something for folks upgrading.

All 6 comments

Understood.

The solution is to just delete that resource from the state: terraform state rm module.eks.data.http.workstation_external_ip

Thank you!

I found this ticket useful, may be worth noting in a Release Notes section or something for folks upgrading.

Yea with a note in CHANGELOG.md, I think we can close this out as having done the due diligence. Super simple PR if either of you have the cycles.

Cool. Gonna close this then 馃檪

Was this page helpful?
0 / 5 - 0 ratings