Skip to content
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

The argument "url" is required, but was not set. #355

Open
jinxiao opened this issue Jul 8, 2023 · 2 comments
Open

The argument "url" is required, but was not set. #355

jinxiao opened this issue Jul 8, 2023 · 2 comments

Comments

@jinxiao
Copy link

jinxiao commented Jul 8, 2023

When I tried to use terraform plan and terraform apply, it reported
The argument "url" is required, but was not set.

Terraform v1.5.2
on linux_amd64
+ provider registry.terraform.io/carlpett/sops v0.7.2
+ provider registry.terraform.io/hashicorp/aws v4.28.0
+ provider registry.terraform.io/hashicorp/helm v2.7.1
+ provider registry.terraform.io/hashicorp/kubernetes v2.18.1
+ provider registry.terraform.io/hashicorp/time v0.9.1
+ provider registry.terraform.io/phillbaker/elasticsearch v2.0.7

I found the same issue here: #221
But when I have upgraded the version to 1.5.2, the problem is still there. Please help.

@excalq
Copy link

excalq commented Jul 21, 2023

With Terraform 1.4.6 and phillbaker/elasticsearch 2.0.7, this is still broken. The ELASTICSEARCH_URL env workaround does not work. (The target is OpenSearch 2.5)

@vishnu-techprescient-teika

I am also encountering the same issue, my version details

Terraform v1.4.5
on linux_amd64
+ provider registry.terraform.io/datadog/datadog v3.10.0
+ provider registry.terraform.io/hashicorp/archive v2.2.0
+ provider registry.terraform.io/hashicorp/aws v4.8.0
+ provider registry.terraform.io/hashicorp/null v3.1.1
+ provider registry.terraform.io/hashicorp/random v3.1.3
+ provider registry.terraform.io/opensearch-project/opensearch v2.2.0
+ provider registry.terraform.io/phillbaker/elasticsearch v2.0.6

I am using it with Opensearch version 1.6 but getting error:

╷
│ Error: Missing required argument
│ 
│ The argument "url" is required, but was not set.

In my trials I have used the env var - ELASTICSEARCH_URL and also at one point provider asked for url itself:

terraform apply
provider.elasticsearch.url
 Elasticsearch URL

 Enter a value: https://<url>.us-east-1.es.amazonaws.com/

But still got the same error. Please help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants