This page describes how to deploy a SaaS offering, which means that SaaS Runtime provisions the Google Cloud resources and deploys the SaaS application in the regions specified in the SaaS offering resource.
To deploy the SaaS offering, SaaS Runtime creates the unit by deploying the blueprint associated with a unit kind.
Before you begin
Ensure you have created the following:
- A SaaS offering resource for your SaaS application.
- Unit kinds to model the SaaS offering.
Deploy the SaaS offering
To deploy the SaaS offering, SaaS Runtime provisions the resources that are part of a unit kind. The term in SaaS Runtime for the provisioned resources or deployed application is a unit.
When you create a unit, SaaS Runtime provisions the resources defined in the Terraform configuration that is connected to the unit kind. The resources are provisioned in each region that is part of the SaaS offering.
For example, if you had a unit kind for a single VM, then when you create a unit, SaaS Runtime provisions the VM in the regions defined in the SaaS offering.
Create a unit:
In the console, go to SaaS Runtime > Units.
Select Create.
On the Unit details page:
For Unit name, type a name for the unit. The name must contain only lowercase letters, numbers, or hyphens.
Under SaaS offering, select the SaaS offering resource that you created earlier.
Under Region, select the region where you want to deploy the resources or application.
Under Unit kind, select the unit kind that defines the resources or application that you want to deploy.
Under Management mode, select User.
- Unspecified if
- User to have units deprovisioned manually. Units are not deprovisioned automatically by SaaS Runtime.
- System to have SaaS Runtime deprovision dependent units when they are no longer needed.
Optional: Add a label to the resources that you are deploying. For more details about labels, see the Labels overview.
To add a label:
Under Labels select Add labels.
For Key 1 and for Value 1, enter the desired key-value pair.
Repeat the steps above for each label that you want add.
Select Create.
To provision the resources or deploy the application:
On the Units > Create a unit page, select Provision.
For the release field, select the release for the versions of the Terraform configuration that you want to deploy.
For the Service account, select the service account
Add a Tenant project:
- Select Add tenant project variables.
- Define the first input variable:
- For Name, keep the name
tenant_project_id
- For Variable type, select String.
- For Variable value type
quickstart-tenant-project
.
- For Name, keep the name
- Define the second input variable:
- For Name, keep the name
tenant_project_number
- For Variable type, select Integer.
- For Variable value enter your project number.
- For Name, keep the name
Select Provision.
View the deployed unit
You have now used SaaS Runtime to create a unit, which deploys the resources or application in the associated unit kind.
To view the resources that you deployed:
In console, go to the SaaS Runtime > Units > Unit details page.
Click the name of your unit.
On the Unit details page:
- See that the State is Ready (or the state might be Provisioning while the operation is still in progress).
- Expand the Variables section.
- In the Output variables, you can see details related to any output variables specified in the Terraform configuration. For more details about variables, see Variables and variable mapping.
What's next
- To learn more about SaaS Runtime, see the SaaS Runtime overview.
- For more details about the service accounts needed when using SaaS Runtime, see service accounts.
- For the steps to update the release, see Rollout a release.