-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Terraform crashes when importing a google_access_context_manager_service_perimeter resource #4045
Comments
I believe the import command you want is Can you try that command and let me know if it works? Either way the import format should be documented better and not crash on an invalid input. |
I've added a regex on the import for that resource that will check that the name is in the expected form. This will be available in future releases of the terraform provider. If changing the import command to the comment above does not fix the crash please reopen this issue |
@slevenick thanks for the quick response. Indeed, the import command was incorrect. When I use the format you provided it does not crash and works properly. Indeed, the documentation about the import format is a bit vague so would be nice if it could be made somewhat more clear. |
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! |
Community Note
Terraform Version
Terraform 0.12.4
Google provider version 2.10.0
Affected Resource(s)
Terraform Configuration Files
Panic Output
See https://gist.github.com/rolandkool/37fb2d7f84c6207a024f76206a0d0d50
Expected Behavior
Import should succeed and statefile gets updated
Actual Behavior
Import command crashes
Steps to Reproduce
The text was updated successfully, but these errors were encountered: