Closed Hugo-Dahl-Tyler closed 2 years ago
A temporary workaround would be to set the version range for the terraform-aws-apigateway-v2 to < 1.9.0
, however, if there are others who are setting version ranges in a similar semver-compatible manner, this would also impact them.
This issue has been resolved in version 2.0.0 :tada:
Thanks @Hugo-Dahl-Tyler for reporting this issue! It is still rather hard to remember all these versioning strategies and procedures.
Agreed @antonbabenko - especially when you start working with more and more modules, which each have their own versioning to manage, as well as maintaining compatibility with the provider. Thanks for looking at it so quickly!
I'm going to lock this issue 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 similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
Description
Running
terraform install
orterraform install -upgrade
is failing due to conflicting AWS providers between modules.Most of the modules I currently use in my project support AWS provider
< 4.0.0
, and I've set all my modules to be restrictive based on the current major version based on Semver, including "terraform-aws-apigateway-v2".However, between 1.8.0 and 1.9.0, the AWS provider was changed from
>= 3.24.0
to>= 4.0
. With such a change in a provider, and potentially module, I would expect the module to also be updated by a major version to follow Semver convention.If your request is for a new feature, please use the
Feature request
template.⚠️ Note
Before you submit an issue, please perform the following first:
.terraform
directory (! ONLY if state is stored remotely, which hopefully you are following that best practice!):rm -rf .terraform/
terraform init
Versions
Module version [Required]: 1.9.0
Terraform version: 1.0.9
Provider version(s):
provider registry.terraform.io/hashicorp/archive v2.2.0
provider registry.terraform.io/hashicorp/aws v3.74.2
provider registry.terraform.io/hashicorp/external v2.2.0
provider registry.terraform.io/hashicorp/local v2.1.0
provider registry.terraform.io/hashicorp/null v3.1.0
provider registry.terraform.io/hashicorp/random v3.1.0
Reproduction Code [Required]
Steps to reproduce the behaviour:
terraform init