terraform-provider-google
terraform-provider-google copied to clipboard
Support source_snapshot for instance template disks.
Community Note
- Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
- Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
- If you are interested in working on this issue or have submitted a pull request, please leave a comment. If the issue is assigned to the "modular-magician" user, it is either in the process of being autogenerated, or is planned to be autogenerated soon. If the issue is assigned to a user, that user is claiming responsibility for the issue. If the issue is assigned to "hashibot", a community member has claimed the issue already.
Description
Per - https://cloud.google.com/compute/docs/reference/rest/v1/instanceTemplates - instance templates support creating disks from a snapshot: initializeParams.sourceSnapshot.
This is a supported method of creating an additional PD that isn't a boot disk.
New or Affected Resource(s)
- google_compute_instance_template
Potential Terraform Configuration
resource "google_compute_instance_template" "default" {
name = "appserver-template"
disk {
source_snapshot = "my-snapshot-name"
}
}
References
- https://cloud.google.com/compute/docs/reference/rest/v1/instanceTemplates