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

Unable plan/destroy an initially succesfully created federation upstream #32

Open
zeebonk opened this issue Mar 1, 2022 · 0 comments
Open

Comments

@zeebonk
Copy link

zeebonk commented Mar 1, 2022

Terraform Version

❯ terraform -v
Terraform v1.0.6
on darwin_amd64
+ provider registry.terraform.io/cyrilgdn/rabbitmq v1.6.0

Affected Resource(s)

  • rabbitmq_federation_upstream

Terraform Configuration Files

resource "rabbitmq_federation_upstream" "this" {
  name  = "test"
  vhost = "dev"

  definition {
    uri             = "amqps://172.0.0.1"
    prefetch_count  = 1000
    reconnect_delay = 5
    ack_mode        = "on-confirm"
    trust_user_id   = false
  }
}

Debug Output

│ Error: Error: API responded with a 401 Unauthorized
│
│   with rabbitmq_federation_upstream.this,
│   on federation.tf line 17, in resource "rabbitmq_federation_upstream" "this":
│   17: resource "rabbitmq_federation_upstream" "this" {

Expected Behavior

I should be able to re-appy or delete at any point in time.

Actual Behavior

I get a 401 Unauthorized for every operation after the initial resource creation.

Steps to Reproduce

  1. Run terraform apply
  2. Run terraform apply again

Important Factoids

  • This happens at a regular CloudAMQP managed cluster.
  • Running a curl to read the resource manually works: curl -XGET -u {redacted}:{redacted} https://{redacted}/api/parameters/federation-upstream/dev/test

References

n/a

@zeebonk zeebonk changed the title Unable plan/destroy an initially succesufully created federation upstream Unable plan/destroy an initially succesfully created federation upstream Mar 8, 2022
@zeebonk zeebonk changed the title Unable plan/destroy an initially succesfully created federation upstream Unable plan/destroy an initially sccesfully created federation upstream Mar 8, 2022
@zeebonk zeebonk changed the title Unable plan/destroy an initially sccesfully created federation upstream Unable plan/destroy an initially succesfully created federation upstream Mar 8, 2022
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

1 participant