After you create an application draft from a template, you can deploy the application from the Google Cloud console. When you deploy from the Google Cloud console, you can do the following:
- Preview changes that Terraform plans to make to your infrastructure.
- Enable Google Cloud resource APIs that are required for your application.
- Investigate deployment issues.
- Use telemetry data to analyze resource performance.
- Identify and apply template revisions to your application.
This document helps you deploy, manage, and modify your application.
Before you begin
You must have one of the following roles on the app-enabled folder or management project:
- Application Admin (
roles/designcenter.applicationAdmin
) - Application Operator (
roles/designcenter.applicationOperator
)
To deploy the application with a service account, you must have one of the following:
- Your own service account that you configured to deploy applications and underlying resources. For more information, see Grant roles to your service account.
- The Project IAM Admin (
roles/resourcemanager.projectIamAdmin
) role on the app-enabled folder. This role lets you create a new service account during deployment.
Deploy from the Google Cloud console
Select a service account option and deploy your application. When you deploy an application, Google Cloud resources are created, and you begin to incur charges associated with those resources.
From the navigation menu, click Applications.
From the table, click the Application name.
From the Application details page, review the details and click Edit to make changes.
Click Deploy.
Select one of the following service accounts to deploy your application:
Select a service account: In the Service account field, enter the name of an existing service account. To configure the service account, see Grant roles to your service account.
Create a new service account: You must have the Project IAM Admin (
roles/resourcemanager.projectIamAdmin
) role, which is used to assign the required deployment roles to the service account.
Click Proceed.
To preview the changes that Terraform plans to make to your infrastructure, do the following:
Click Preview.
Review the changes and click Copy and close. The preview is copied to your clipboard.
To save the preview, paste and save in a document of your choice.
In the Review APIs area, review the list of APIs that are required for your application. The APIs are automatically enabled when you deploy.
Click Deploy. The application details and deployment status are displayed as the deployment completes.
If there are issues with your deployment, do the following:
In the Application details panel, click Deployments.
Review the error messages.
Click View logs to view detailed build information.
To manage your deployed application, see View application details.
View application details
When your application deployment finishes, you can examine its related information. For example, you might view the following:
- Details such as last update time, revision date, and region.
- Outputs such as service URI.
- Deployment status, error information, and links to logs.
To view application details, do the following:
From the navigation menu, click Applications.
From the table, click the Application name. The Application details panel displays the following:
View app in App Hub: Investigate your application in App Hub. You can view deployed resources and examine telemetry data to diagnose issues and analyze performance. For more information, see Monitor App Hub applications.
App Details: View information like the last updated date, source template, region, and service account.
Outputs: Identify service URIs, which you can use to interact with your application frontend or backend.
Deployments: Examine the deployment status, deployment errors, and links to logs to troubleshoot errors.
Modify deployed applications
If you want to modify a deployed application, do one of the following to make sure that your changes are retained when you redeploy the application:
Apply template revisions
If your application was previously deployed from the Google Cloud console, and an administrator has shared a template revision with you, you can apply the template changes to your application. When you update your application, an application revision is created. You can configure components that were modified or added to the revised template.
You can view available template revisions for your applications using Cloud Hub. For more information, see View deployments.
To apply template revisions to your application, do the following:
From the navigation menu, click Templates.
Click the Template ID that contains the revision you want to apply.
From the Configure an app list, select the application that you want to update.
Edit the application details and click Save.
Click each component in the design canvas, and modify component configurations.
Click Deploy. For deployment steps, see Deploy from the Google Cloud console.