-
Notifications
You must be signed in to change notification settings - Fork 37
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
Error: Get <some exchange> unsupported protocol scheme "" #15
Comments
Hi @porcospino , Thanks for opening this issue, I tested your code and was able to reproduce it but unfortunately I don't think it's linked to this provider. It's probably more linked to this Terraform issue: hashicorp/terraform#4149 What happens: When you change deployment mode or instance type for the broker, this will recreate a new one, so during the plan Terraform knows that instances URL will change but doesn't know the new one yet, if you try it without any ~ instances = [
- {
- console_url = "https://XXX.mq.eu-west-1.amazonaws.com"
- endpoints = [
- "amqps://XXX.mq.eu-west-1.amazonaws.com:5671",
]
- ip_address = ""
},
] -> (known after apply) So with any Where I work, we usually create clusters and resources on these clusters in multiple steps (with remote state to retrieve the output values of previous steps). You can also In any case, this is not an issue with this provider. The error message could be clearer though, and I need to check why the validation function didn't work properly, but to be sure I added a if endpoint == "" {
panic("no endpoint")
} in my locally built provider and it panics during the plan. I allow myself to close this issue but feel free to comment it or open it back if needed or if I'm wrong. |
Hi @cyrilgdn Thanks for taking the time to provide such a comprehensive answer. The |
I've written a mini-module that's a wrapper around this provider and the hashicorp/aws
aws_mq_broker
. I can stand up a broker and declare exchanges, queues, bindings, etc. But if I try to change thedeployment_mode
orhost_instance_type
I get an error when planning:I know that the error is triggered when I make a change to the configuration of the
aws_mq_broker
, but it appears to come from this provider.Terraform Version
Affected Resource(s)
Terraform Configuration Files
This is the module:
This is the configuration that calls it:
This works just fine. It stands up a broker and configures the relevant exchanges, queues, bindings. The problem comes when changing the configuration, e.g.
Debug Output
There's way too much sensitive info in a debug output, but you can certainly reproduce with:
Expected Behavior
I would expect a plan that either reconfigures the cluster, or replaces it
Actual Behavior
The text was updated successfully, but these errors were encountered: