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

No support for Automated Windows Password generation #1472

Closed
discentem opened this issue May 10, 2018 · 8 comments · Fixed by GoogleCloudPlatform/magic-modules#3247, #5911 or hashicorp/terraform-provider-google-beta#1860
Assignees

Comments

@discentem
Copy link
Contributor

discentem commented May 10, 2018

Terraform Version

Terraform v0.11.7

Affected Resource(s)

Please list the resources as a list, for example:

  • google_compute_instance

terraform-google-provider does not have support for https://cloud.google.com/compute/docs/instances/windows/automate-pw-generation as far as I can tell. Having the equivalent of hashicorp/terraform-provider-aws#2219 for this provider would be great for automated provisioning workflows.

Here is an full, working example of automate-pw-generation in golang: https://github.com/GoogleCloudPlatform/compute-image-windows/pull/139/files. it would just need to be modified/integrated into this provider.

@morgante
Copy link

morgante commented Jun 1, 2018

I'm not sure if this should be its own resource.

Instead, I think with the addition of #1578 you'd be able to do this all within your Terraform config.

The config would

@discentem
Copy link
Contributor Author

Thanks for the comment @morgante. I was assuming it could be part of the compute_instance provider, but I definitely could be wrong.

Am I able to generate these bits just with already existing terraform functions? https://github.com/GoogleCloudPlatform/compute-image-windows/blob/master/examples/windows_auth_go_sample.go#L59-L71

@levid0s
Copy link

levid0s commented Mar 25, 2019

Any updates on this?

@morgante do you have a sample code on how to do this?

@morgante
Copy link

@KbLev Unfortunately I don't think it's currently possible because #1578 is still open.

@haf-afa
Copy link

haf-afa commented Jan 23, 2020

@morgante What about the suggestion of @discentem - using the PKI infra to extract the password rather than "screen scraping" the password from the output of the serial port?

@haf
Copy link

haf commented Apr 1, 2020

Do we have some sample code to do this available now that #1578 is closed @morgante ?

@morgante
Copy link

morgante commented Apr 2, 2020

I don't have the Terraform code, but you should be able to do the equivalent of https://github.com/GoogleCloudPlatform/compute-image-windows/pull/139/files using the new data source.

@ghost
Copy link

ghost commented Apr 17, 2020

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!

@ghost ghost locked and limited conversation to collaborators Apr 17, 2020
@github-actions github-actions bot added forward/review In review; remove label to forward service/compute-instances labels Jan 14, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.