Skip to content
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

Add support for source_workstation in workstations_workstation resource. #20731

Conversation

modular-magician
Copy link
Collaborator

This adds support for workstation PD cloning using source_workstation. It can only be set during workstation resource creation and cannot be updated afterwards: https://cloud.google.com/workstations/docs/reference/rest/v1beta/projects.locations.workstationClusters.workstationConfigs.workstations#Workstation.FIELDS.source_workstation

The primary use case of this field is for recovery, so it doesn't seem possible to write an automated test for it. This is because a workstation must be started manually before it can be cloned, else its PD is not created. If there is a way to write a test that can send API calls outside of Terraform, please let me know.

Fixes #19730.

Release Note Template for Downstream PRs (will be copied)

See Write release notes for guidance.

workstations: add `source_workstation` field to `google_workstations_workstation` resource

Derived from GoogleCloudPlatform/magic-modules#12549

…ce. (hashicorp#12549)

[upstream:3141d28edde5caf84cd1fc574408e608c33e03dc]

Signed-off-by: Modular Magician <[email protected]>
@modular-magician modular-magician requested a review from a team as a code owner December 17, 2024 21:08
@modular-magician modular-magician merged commit 30f4455 into hashicorp:main Dec 17, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add support for source_workstation to google_workstations_workstation
1 participant