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

Make error message more verbose. #888

Open
dmitry-mukhin opened this issue Oct 7, 2024 · 0 comments
Open

Make error message more verbose. #888

dmitry-mukhin opened this issue Oct 7, 2024 · 0 comments

Comments

@dmitry-mukhin
Copy link

Terraform Version

# Copy-paste output from `terraform -v`
Terraform v1.9.7
on linux_amd64
+ provider registry.terraform.io/fastly/fastly v5.12.0

Affected Fastly Terraform Resource(s)

Please list the affected resources, for example:

  • fastly_tls_subscription

Terraform Configuration Files

# Copy-paste your Terraform configuration here.
resource "fastly_tls_subscription" "tls" {
  domains               = [for domain in var.tls_domains : domain]
  certificate_authority = var.certificate_authority
}

Expected Behavior

We have a lot of services.
I'm expecting to see more verbose error message when something like this occurs, so I can see that subscription(s) and what domain(s) cause the problem.

Actual Behavior

I see a bunch of errors that indicate what happend but not to which resources.

Debug Output (optional)

│ Error: 400 - Bad Request:
│ 
│     Title:  Can't delete subscription
│     Detail: Subscription has active domains
│ 
│ 
╵
╷
│ Error: 400 - Bad Request:
│ 
│     Title:  Can't delete subscription
│     Detail: Subscription has active domains
│ 
│ 
╵
╷
│ Error: 400 - Bad Request:
│ 
│     Title:  Can't delete subscription
│     Detail: Subscription has active domains
│ 
│ 
...

Steps to Reproduce

  1. remove some subsctriptions from the configuration
  2. run terraform apply

Important Factoids (optional)

We're running 100s of services.

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