0

I would like to use ScientiaMobile’s WURFL Microservice for GCP Marketplace (https://docs.scientiamobile.com/documentation/wurfl-microservice/gcp-getting-started) however I do not want to create it via GCPs’s console UI because I want to programmatically destroy the instance when it’s not being used then programmatically create it again when needed. In other words, I want to write a script to create it.

Is it possible to programmatically create services from GCP’s marketplace?

jamiet
  • 10,501
  • 14
  • 80
  • 159
  • 1
    Under the covers, Google Marketplace applications deploy via Deployment Manager. Once you deploy, you should be able to use the Deployment Manager APIs to destroy the deployment. I think you can also access the Deployment Manager configuration file (after deployment) which would allow you to deploy and destroy via program control. – John Hanley Jul 02 '21 at 20:37
  • Great stuff. Thank you – jamiet Jul 02 '21 at 20:48

1 Answers1

0

You can either use Deployment Manager or Terraform for your use case. If you're only deploying workloads to GCP, Deployment Manager should meet all of your deployment needs. And because it's a built-in Google Cloud tool, it's also easier to use from an authentication perspective. You can learn more about this technology by visiting the official documentation and guide for Deployment Manager.

On the other hand, Terraform is a better option when deploying to multiple cloud providers or vendors. There are also plenty of community tutorials for Terraform on Google Cloud, check this link to know more.

Alex G
  • 1,179
  • 3
  • 15
  • Thanks, we already use terraform extensively but prior to posting the question above I couldn't find a resource in the GCP Terraform provider that is capable of deploying stuff from MarketPlace. Do you know of a provider that is capable of deploying Marketplace resources? – jamiet Jul 05 '21 at 15:49
  • You can check [this](https://stackoverflow.com/questions/60510796/create-instance-using-terrafrom-from-gcp-marketplace) article and see if it helps. – Alex G Jul 07 '21 at 22:57