-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Errors when building Google Compute Instance from snapshot #3557
Comments
That should say: "It appears that Terraform replaced '/global/snapshots/" with "/zones/us-east4-a/disks/'" |
I figured out how to build from images and disks. I am assuming building from snapshots would be a new feature with Terraform? |
Creating a compute instance with a disk from an image or adding a boot disk is able to be done in a single call to the compute instance API. However even though it looks the same in the cloud console to build from a snapshot it's actually making multiple calls in the back end to create a disk from snapshot, then passing that disk into the create call for the compute instance. If you look at the "equivalent REST or command line" when in the UI you will see the 2 API calls or 2 gcloud calls. I will clarify this in the docs, but for now you should be able to create a |
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 👉 hashibot-feedback@hashicorp.com. Thanks! |
This issue was originally opened by @antman1p as hashicorp/terraform#21215. It was migrated here as a result of the provider split. The original body of the issue is below.
Terraform Version
Terraform Configuration Files
Debug Output
https://gist.github.com/antman1p/59831a0e92c043d7e46b2b2a92171b33Crash Output
NONEExpected Behavior
GCP instances should have been built from the specified snapshotActual Behavior
It appears that Terraform replaced "/global/snapshots/" with "/zones/us-east4-a/"Steps to Reproduce
terraform init
terraform plan
terraform apply
Additional Context
Using the RedBaron templates: https://github.com/Coalfire-Research/Red-BaronReferences
NoThe text was updated successfully, but these errors were encountered: