-
Notifications
You must be signed in to change notification settings - Fork 113
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
Resource consul_key_prefix
does not honor datacenter set in provider consul
#13
Comments
It seems that it is on the consul/api library side
|
Thanks @Chhed13! It seems that it would be nice to have a provider datacenter as well, if possible. What do you think? |
According to the architecture of provider and resources |
Thanks for the good discussion here. Going to close as a duplicate of #8. |
This issue was originally opened by @amanjeev as hashicorp/terraform#14451. It was migrated here as part of the provider split. The original body of the issue is below.
The documentation at https://www.terraform.io/docs/providers/consul/r/key_prefix.html says that datacenter is option and that it by default uses from the provider setup. But that was not true in our case.
Terraform Version
v0.9.3
Affected Resource(s)
Please list the resources as a list, for example:
Terraform Configuration Files
Provider:
Resource (without
datacenter
) original:Resource (with
datacenter
) modified/fixed:Expected Behavior
Since
datacenter
is already passed in via provider "consul", it should have chosen the correct datacenter.Actual Behavior
It chose the wrong datacenter.
Steps to Reproduce
Please list the steps required to reproduce the issue, for example:
datacenter
) original"resource
aboveterraform apply
The text was updated successfully, but these errors were encountered: