-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
The argument "region" is required, but was not set. #11058
Comments
Seeing the same thing here,
If I run the same apply again, no changes (and the outputs will show up):
|
I'm seeing the same error on the first |
I have the same issue. terraform 0.12.18 Here's an example. Running "terraform apply" on the configuration below will create the two EIPs.
However, if you now update your code and "remove" a resource as depicted below...
...and run "terraform apply" again, you get the following error message:
Note, eip_b did get successfully destroyed, and running "terraform apply" again after this error message will indicate no changes and exit cleanly. |
Hi everyone 👋 Thank you for reporting this and sorry you are running into this unexpected behavior. The output provided by @scalp42 and reproduction provided by @jjsp556 above does seem to highlight some sort of bug within the Terraform CLI where its performing region validation for the "default" provider, even though only aliased provider resources are in use. I have submitted the following upstream to track that issue: hashicorp/terraform#23671 Since there is likely nothing to change or fix in the Terraform AWS Provider for this specific case, I'm going to close this issue in preference of the upstream issue. If you are still having unrelated trouble with the |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks! |
This issue was originally opened by @Craigfis as hashicorp/terraform#23517. It was migrated here as a result of the provider split. The original body of the issue is below.
I'm using Terraform version 12.16 and trying to run terraform apply to update a deployment.
Terraform Configuration Files
Debug Output
Unable to share.
Expected Behavior
Should succeeed.
Actual Behavior
Error
Steps to Reproduce
terraform init
terraform apply
References
#9989
The text was updated successfully, but these errors were encountered: