terraform-local icon indicating copy to clipboard operation
terraform-local copied to clipboard

Endpoint deprecation warnings in .18.1 & Terraform AWS > 5.36 (or so)

Open mbarr-hrp opened this issue 1 year ago • 3 comments

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)

mbarr-hrp avatar Apr 15 '24 16:04 mbarr-hrp

update terraform to v1.8.1 and this should go away.

trevoralfstad avatar Apr 19 '24 17:04 trevoralfstad

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)
╵

xabinapal avatar Apr 20 '24 18:04 xabinapal

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.

lakkeger avatar Apr 22 '24 07:04 lakkeger