opensearch-project / terraform-provider-opensearch

https://registry.terraform.io/providers/opensearch-project/opensearch
Apache License 2.0
73 stars 56 forks source link

[BUG] The provider does not get the url #131

Closed ashraf133 closed 9 months ago

ashraf133 commented 9 months ago

What is the bug?

i have this message : │ The argument "url" is required, but was not set.

How can one reproduce the bug?

run terraform apply with this configurations

` terraform {

required_providers {

aws = {

  source  = "hashicorp/aws"
  version = "5.23.1"
}
opensearch = {
  source  = "opensearch-project/opensearch"
  version = "2.1.0"
}

} } provider declaration : provider "opensearch" {

url = "https://${aws_opensearch_domain.opensearch.endpoint}"

aws_region = var.Region

healthcheck = false

aws_assume_role_arn = var.master_user_arn

opensearch_version = aws_opensearch_domain.opensearch.engine_version

}

`

Plan: 12 to add, 0 to change, 0 to destroy. ╷ │ Error: Missing required argument │ │ The argument "url" is required, but was not set. `

What is the expected behavior?

the expected behaviour is creating resources

What is your host/environment?

i use Opensearch 2.3 and opensearch-project/opensearch 2.1.0