We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
1.5.7
recreate missing resource
Throws an error:
Error retrieving route: UnexpectedResponseError URL=https://api.mailgun.net/v3/routes/6565de540d1867150b837193 ExpectedOneOf=[]int{200, 202, 204} Got=404 Error: {"message":"Route not found"}
mailgun_route
locals{ environments = toset([ "ab", "bc", "cd" ]) } resource "mailgun_route" "environments_catch_all" { for_each = local.environments region = "us" priority = "999" description = ".*@${each.key}.mywebsite.io - terraform" expression = "match_recipient('.*@${each.key}\\.mywebsite\\.io')" actions = [ "forward('https://${each.key}.mywebsite.io')", "stop()" ] }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Terraform Version
1.5.7
Affected Resource(s)
Expected Behavior
recreate missing resource
Actual Behavior
Throws an error:
Error retrieving route: UnexpectedResponseError URL=https://api.mailgun.net/v3/routes/6565de540d1867150b837193 ExpectedOneOf=[]int{200, 202, 204} Got=404 Error: {"message":"Route not found"}
Steps to Reproduce
mailgun_route
( in my case I used for_each, might occur on a single route )The text was updated successfully, but these errors were encountered: