terraform-local
terraform-local copied to clipboard
Endpoint deprecation warnings in .18.1 & Terraform AWS > 5.36 (or so)
terraform-local: .18.1 terraform: 1.74, 1.8.0 AWS provider: > 5.36? Wasn't present in < 5.35.
When running tflocal plan, or tflocal apply:
Warning: Invalid Attribute Combination
│
│ with provider["registry.terraform.io/hashicorp/aws"],
│ on providers.tf line 19, in provider "aws":
│ 19: provider "aws" {
│
│ Only one of the following attributes should be set: "endpoints[0].configservice", "endpoints[0].config"
│
│ This will be an error in a future release.
│
│ (and one more similar warning elsewhere)
update terraform to v1.8.1 and this should go away.
Even with Terraform v1.8.1 the warning is shown:
$ terraform --version
Terraform v1.8.1
on linux_amd64
+ provider registry.terraform.io/hashicorp/aws v5.46.0
$ tflocal apply
╷
│ Warning: Invalid Attribute Combination
│
│ with provider["registry.terraform.io/hashicorp/aws"],
│ on localstack_providers_override.tf line 2, in provider "aws":
│ 2: provider "aws" {
│
│ Only one of the following attributes should be set: "endpoints[0].elasticsearch", "endpoints[0].es",
│ "endpoints[0].elasticsearchservice"
│
│ This will be an error in a future release.
│
│ (and one more similar warning elsewhere)
╵
Hi @mbarr-hrp, Thanks for reporting this issue. The root of this warning is the endpoint generation in the script which done dynamically without any checks for such condition currently, in the near future I'll provide a fix which addresses this reciprocal exclusiveness.