You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
terraform import google_project.project (project number) should fail.
Actual Behavior
terraform import google_project.project (project number) succeeded, but later the terraform plan showed an error specifying that the project has to be destroyed and recreated, but cannot due to prevent_destroy = true
Steps to Reproduce
For a GCP project with some "name", "project_id", and "project_number", use project number instead of project id when importing it with terraform import google_project.project (project number). It will succeed, even though an error was expected.
Try running make plan to see an error.
Links
import documentation states has this text about IDs: If you're unsure, feel free to just try an ID. If the ID is invalid, you'll just receive an error message.
The text was updated successfully, but these errors were encountered:
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. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 [email protected]. Thanks!
ghost
locked and limited conversation to collaborators
Aug 17, 2019
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
This issue was originally opened by @nyurik as hashicorp/terraform#22109. It was migrated here as a result of the provider split. The original body of the issue is below.
Terraform Version
Terraform Configuration Files
Expected Behavior
terraform import google_project.project (project number)
should fail.Actual Behavior
terraform import google_project.project (project number)
succeeded, but later theterraform plan
showed an error specifying that the project has to be destroyed and recreated, but cannot due toprevent_destroy = true
Steps to Reproduce
terraform import google_project.project (project number)
. It will succeed, even though an error was expected.make plan
to see an error.Links
import documentation states has this text about IDs:
If you're unsure, feel free to just try an ID. If the ID is invalid, you'll just receive an error message.
The text was updated successfully, but these errors were encountered: