Configure the environment Enable Cloud Run API gcloud services enable run.googleapis.com Set the compute region gcloud config set compute/region us-central1 Create a LOCATION environment variable LOCATION=”us-central1″ Create a Cloud SQL instance Create a PostgreSQL instance with the following values Instance ID: poll-database Password: secretpassword Database version: PostgreSQL 13 Region: us-central1 …
Create a Cloud SQL instance From the Navigation menu () click on SQL. Click Create Instance. Create your instance with the following settings: Click choose MySQL Type “myinstance” for Instance ID In the password field click on the Generate link and the eye icon to see the password. Save the password to use in the next section. Leave all …
Navigate to VM Instances by going to Navigation Menu > Compute Engine > VM Instances and click Create instance. Set up your VM with the following information: Name: nfs-client Region: us-central1(Iowa) Zone: us-central1-c Series: N1 Machine Type: 1 vCPU (n1-standard-1) Boot Disk: Debian GNU/Linux 9 (stretch) Firewall: Allow HTTP traffic …
Define an environment variable named Cloud Storage_BUCKET and use your Project ID as the bucket name. Use the following command which uses the Cloud SDK to get your Project ID. export BUCKET=”$(gcloud config get-value project)” Next, make a new bucket using the following gsutil command: gsutil mb “gs://$BUCKET” You can …
In the Cloud Console, in the top right toolbar, click the Activate Cloud Shell button. Click Continue. (Optional) You can list the active account name with this command: gcloud auth list (Optional) You can list the project ID with this command: gcloud config list project Create a bucket gsutil mb gs://<bucket-name> Upload an …
Create a Bucket Buckets are the basic containers that hold your data in Cloud Storage. To create a bucket: In the Cloud Console, go to Navigation menu > Cloud Storage > Browser. Click Create Bucket: Enter your bucket information and click Continue to complete each step: Name your bucket: Enter a unique name for your bucket. For this lab, …
In Cloud Shell, run the following to create a Cloud Pub/Sub topic named vm-audit-logs: gcloud pubsub topics create vm-audit-logs Set an environment variable for the Compute Engine zone: export ZONE=us-central1-c Now create a virtual machine instance in your selected zone. This machine is created only to generate log messages, you …
In the Cloud Console, select Navigation menu > Cloud Functions, and then CREATE FUNCTION. Set the following: Function Name: helloWorld Trigger type: HTTP Authentication: check the box next to Allow unauthenticated invocations Click SAVE. Expand Runtime, build, connections and security settings. Under Autoscaling, set the Maximum number of instances to 5. …
In the Cloud Console, in the top right toolbar, click the Activate Cloud Shell button. Ensure the Cloud Functions API is enabled gcloud services enable cloudfunctions.googleapis.com Download and setup the code curl -LO https://github.com/GoogleCloudPlatform/golang-samples/archive/main.zip unzip main.zip cd golang-samples-main/functions/codelabs/gopher tree Deploy this function as an HTTP Cloud Function! gcloud functions deploy …
Navigate to cloud logging and go to log viewer Now inside Cloud Logging you have two options you can use the filter option which will generate a query for you or you can use the Logs field explorer and you can select the right field, so for this example let’s …
From the menu go to the Logging on & select Log viewer Now click on Log Router Now click on Create Sink Select the single destination as Cloud Logging Bucket Now enter Sink Name and select the bucket then click on Create Sink
From your Google Cloud to go App Engine dashboard Click on Create Application Select the Region where you wanted deploy App Engine Now open CloudShell Clone the application repository from Github in CloudShell git clone https://github.com/GoogleCloudPlatform/python-docs-samples.git cd python-docs-samples/appengine/standard/hello_world ls -la Now let’s deploy the application by running below command gcloud …
To creating the instance template go to your Compute Engine dashboard and then click on Instance Templates and then click on Create instance template You need to enter the instance template name and then you will need to select the Machine type, for machine type you can select e2-small Then …
Go to the compute engine service page and then click on Create Instance Now on the create instance page you can fill in a lot of details about your instance so let’s start Name: Here you can enter the name of the instance, for example enter the name of the instance as webserver …
Open cloud shell and inside shell run the below command #this will generate a key for a particular user, while creating key certain inputs are as just enter ssh-keygen -t rsa -f ~/userkey -C tom #this will generate a key for a project, while creating key certain inputs are as …
Go to the compute engine service page and then click on Create Instance Now on the create instance page you can fill in a lot of details about your instance so let’s start Name: Here you can enter the name of the instance, for example enter the name of the instance as webserver …
From your compute engine dashboard go to snapshot section and then click on Create Snapshot You need to enter the Name of the snapshot followed by the Source disk You can use the same disk which was created in last demo Additionally you can select the location of the snapshot …