Viewing and launching solutions
In this article, you learn how to view and launch solutions from Service Catalog.
Before you begin
To launch a solution using Service Catalog, you must meet the following requirements:
You must have the following Identity and Access Management (IAM) roles:
For the Google Cloud project where the solution has been shared with you:
- Catalog Consumer
(
roles/cloudprivatecatalog.consumer
) OR IAM Viewer (roles/viewer
)
If you don't have either role for the Google Cloud project, contact your Organization Administrator to request access.
- Catalog Consumer
(
For the Google Cloud project where you want to launch the solution:
- Storage Admin
(
roles/storage.admin
) - Cloud Build Editor
(
roles/cloudbuild.builds.editor
) - Viewer
(
roles/viewer
) - Service Account User
(
roles/iam.serviceAccountUser
)
- Storage Admin
(
You must provide a service account in the Google Cloud project where you want to launch the solution, with the following Identity and Access Management (IAM) roles:
- For the Google Cloud project where you want to create the solution:
- Storage Admin
(
roles/storage.admin
) - Logs Writer
(
roles/logging.logWriter
) - Any additional IAM roles that your service account needs to run the solution, which are specific to the solution you're using. For a list of all additional IAM roles that your service account must have to deploy Terraform, contact the administrator who created the solution that you're using.
- Storage Admin
(
- If your Terraform config is located in a different project:
- Storage Object Viewer
(
roles/storage.objectViewer
), for that project If you don't have these roles, contact the Project Owner OR someone who has thesetIAMpolicy
permission for the project to request access.
- Storage Object Viewer
(
- For the Google Cloud project where you want to create the solution:
If you're deploying a solution using Cloud Deployment Manager, the Deployment Manager Editor (
roles/deploymentmanager.editor
) role for the project where you're deploying the solution.If you don't have this role, contact the Project Owner OR someone who has the
setIAMpolicy
permission for the project to request access.
- If you're launching a Terraform configuration, you must enable the Cloud Build API.
View Service Catalog solutions
In Service Catalog, you see a union of solutions from all the catalogs you have access to in your Google Cloud hierarchy.
To view available solutions, go to the Google Cloud console Service Catalog page. Solutions that have been shared with you appear in the main panel.
Launch a link-based solution
To launch a reference link-based solution:
Go to the Google Cloud console Service Catalog page.
Under TYPE, filter by Link and click a solution.
Click Go to link.
This takes you to a link outside of the Google domain where you can download a solution.
Launch a Deployment Manager (DM)-based solution
To launch a DM-based solution:
Go to the Google Cloud console Service Catalog page.
Under TYPE, filter by DM Template and click a solution.
Click Launch on Compute Engine.
If prompted, enable the Deployment Manager API and the Service Catalog API.
Enabling the APIs takes several minutes to complete, but you only need to do it once per Google Cloud project (not per solution).
Complete the deployment form.
You must enter the zone parameter manually by specifying the Compute Engine region and zone you prefer. Enter the region followed by a dash and then the zone (without spaces):
region-zone
. For example,us-central1-a
whereus-central1
is the region anda
is the zone.Click Deploy.
The solution is deployed.
Launch a Terraform configuration
To launch a Terraform configuration:
Go to the Google Cloud console Service Catalog page.
Under TYPE, filter by Terraform and click a solution.
Click Deploy.
If prompted, in the window that appears, click Start a new deployment.
If prompted, enable the Cloud Build API.
Enabling the APIs takes several minutes to complete, but you only need to do it once per Google Cloud project (not per solution).
Create a name for your deployment.
Provide a service account from the same Google Cloud project as the solution, with any required IAM roles.
Fill in the parameters.
Click Preview and deploy.
Review the deployment and click Deploy.
The solution is deployed.
Update a Terraform deployment
For an existing deployment of a Terraform solution, you can update deployment details, including parameters. If there is a new version of the Terraform configuration available for the solution, you can update your deployment to the latest version of the configuration.
To update an existing deployment:
Go to the Deployments page in Service Catalog.
In the table of deployments, click the name of the deployment that you want to update.
On the Deployment Details page, click Update deployment.
Update the deployment details.
Provide a service account from the same Google Cloud project as the solution, with any required IAM roles.
Click Preview and deploy.
Review the deployment and click Deploy.
View and apply the latest version of a configuration
When you manage your Terraform deployments, you can view if the associated solution has released a newer version of the Terraform configuration and update the deployment to the latest configuration.
To view if a deployment has available updates and apply the latest version of the configuration:
Go to the Deployments page in Service Catalog.
Click View deployments with updates to filter the table of deployments. In the table, find the deployment that you want to update and click New Version Available.
On the Deployment Details page, click Update deployment.
Under Select version, select Update to the latest version.
Provide a service account with the required permissions for your Google Cloud project.
If prompted, enter values for any additional parameters.
Provide a service account from the same Google Cloud project as the solution, with any required IAM roles.
Click Preview and deploy.
Review the deployment and click Deploy.
Deprovision a Terraform deployment
You deprovision a Terraform deployment to permanently delete all of its resources.
To deprovision a deployment:
Go to the Google Cloud console Service Catalog page.
Click Terraform deployments.
In the table, find the deployment you want to deprovision.
Provide a service account from the same Google Cloud project as the solution, with any required IAM roles.
Click the more actions menu (displayed as three dots arranged vertically)
, and then click Deprovision.
The deployment is deprovisioned.