The course is part of this learning path
Google Cloud Platform (GCP) provides a suite of services that run on the same infrastructure that Google uses to host its own products, such as Google Search and YouTube. These services let you provision a variety of IT resources, such as virtual machines, storage, and networks.
GCP resources are grouped and deployed into projects. In this course, you will learn how to create and set up new GCP projects and how to give users permission to access project resources by assigning them to roles such as owner and editor.
Access to GCP services is provided via APIs that may be enabled on a per-project basis. You will learn how to enable APIs for a project as well as create budgets and configure monitoring for the resources and services allocated.
- Create new cloud projects
- Add users to projects and assign them to roles
- Enable GCP APIs and services for a project
- Provision Stackdriver accounts for monitoring project resources
- Add billing accounts and create project budgets
- Manage organization resources using the Cloud SDK
- People who would like to become GCP administrators
- People studying for the Google Associate Cloud Engineer exam
For the next section of this course, we will set up a new billing account and link it to our project.
When signing up for the Google Cloud Platform free tier trial, you get $300 worth of credit to use for GCP paid services for up to 12 months.
The free tier also includes an always free feature which includes commonly used GCP services with limited access. If you wish to continue using paid services, after your trial has expired, you can convert to a paid account.
Before we can add a billing account to our project, we must first add a new billing account to our GCP account. To add a new billing account to our GCP account, open the billing page by clicking the Navigation menu. Then click Billing. Click the Manage billing accounts button. Enter the name of your new billing account. Select your country. Review the information. Then click Submit and enable billing.
Now that we have a billing account enabled, we can link it to our project. There are several ways this can be done. Here's one way. To link our project to our new billing account, open the Billing page by clicking the Navigation menu. Then click Billing. Make sure the project you wish to change is selected at the top of the page. Click the Link a billing account button. Choose the billing account. Then click the Set Account button. To change the billing account for a project, open the billing page if it's not already open.
The overview will list the projects linked to this billing account. Click the menu button to the right of the project you want to change. Click Change billing. Then choose the billing account you want to change to. Then click the Set Account button.
To disable a billing account for a project, click the menu to the right of the project you want to change, click Disable billing, then confirm by clicking the Disable Billing button.
Now let's create a budget and alerts for our project. Budgets allow you to track and receive alerts for the amounts spent on a monthly basis. You can create a budget for a specified amount or to match last month's spend.
Administrators and users with billing account roles will receive email alerts when the amount spent exceeds various levels. The default alert levels are 50%, 90%, and 100% of the budget amount configured, and you can add and change the alerting levels to suit your needs. Each month, the amount spent resets back to zero.
Keep in mind, budgets do not cap or put limits on your monthly spending. These are merely alerts to help you monitor the amount spent so you can take the appropriate action.
To create a budget for a project, open the billing page. Click Budgets and alerts. Click the Create a budget button. Give your new budget a name. Choose the billing account. Choose Specified amount or Last month's spend. Enter a dollar amount if specifying an amount. Set your budget alert levels. Then click the Save button. Next, we will create a billing export for our project.
Billing exports allow you to have your usage and cost information exported to a database, BigQuery, where data can be gathered, filtered, and sorted for further analysis. To enable billing exports for a project, open the billing page. Click Billing exports. Click the Edit Settings button. Choose the project. Create a BigQuery dataset by clicking the Go to BigQuery button. Now in BigQuery, click the menu button to the right of your project, then click Create new dataset. Enter your dataset ID, letters, numbers, and underscores. Choose a data location. Choose a data expiration. Click the OK button. Back in the billing export, choose your project. Choose your dataset. Click the Save button.
About the Author
Joseph Cava is a full-stack web development veteran, fluent in all levels of the architecture, specializing in agile software development, product development, user experience, database design, testing, and documentation, focused on cloud deployments to Google Cloud Platform, Amazon Web Services, and Microsoft Azure.