https://pulumi.com logo
#google-cloud
Title
# google-cloud
d

damp-table-85095

08/31/2020, 1:14 PM
Hi. How can one deploy a docker container onto a Google Compute Engine instance without using Kubernetes? This is covered by https://registry.terraform.io/modules/terraform-google-modules/container-vm/google/2.0.0 in terraform.
g

green-school-95910

08/31/2020, 5:14 PM
Containers on GCE are just higher-level configurations that Google exposes on the console and on gcloud. There is no API for that, internally the console and gcloud creates instances with Container-optimized OS and a startup-script that initiates the container that you specified: https://cloud.google.com/compute/docs/instances/create-start-instance#from-container-image
The module the made for terraform does just that too. It translates a smaller and more concise API into the generic one. You can make a Component on pulumi that does the same thing.
Someone might have done it already
If not, maybe I'll add it to
pulumi-gcp-components
d

damp-table-85095

09/01/2020, 1:05 PM
Got it. Thank you.
50 Views