Skip to main content

Command Palette

Search for a command to run...

Google Cloud Platform VPC Peering

Updated
โ€ข2 min read
Google Cloud Platform  VPC Peering
P

๐Ÿ‘จโ€๐Ÿ’ป DevOps Engineer | ๐ŸŒ Cloud Enthusiast | ๐Ÿš€ Automation Advocate

๐Ÿ”ง Transforming Code into Continuous Innovation ๐Ÿ› ๏ธ

1. Create a new Project in GCP

  1. To Create New project and select the project

  1. After creating the project associate the project with a billing account. For this go to the Billing section and select manage billing accounts

Next, select the project under manage billing and enable the billing. (by default it will be enabled)

2. Creating new VM instance

  1. Before creating the vm instance in GCP you have to enable the API for Compute Engine for that go to below menu and select the Library

And then select the compute category โ†’ go to compute engine api to enable it

  1. Now you can create the VM instance

Menu โ†’ Compute Engine โ†’ VM Instance- โ†’ create

Configure VM as shown below or you can modify according to your need

Now you select boot disk option and select which OS you need. (here i using centos 7) And create the VM.

3. To create a firewall for VM instances

  1. Now we want to install webserver in our VM and to Access this webserver we have to open port 80 for VM instance

  2. To configure firewall go back to menu โ†’ select VPC Network โ†’firewall โ†’create firewall rule.

Here you give name and change Target and other setting as shown below

4. Creating new VPC

  1. To create new vpc go to

Menu โ†’ Networking โ†’ Vpc Network โ†’create new VPC network

5. VPC Peering

A VPC peering connection is a networking connection between two VPCs that enables you to route traffic between them using private IP addresses.

  1. Create 2 vpc in different regions with the help of above instruction

  2. Create 1 vm instance in each custom vpc

  1. Now configure firewall rule in both instances

  1. Vpc peering - configure this setup in both project vpcโ€™s

Click on create

More from this blog

What Is S3 Bucket? Key feature ? Real-time-example? Benefits? Use Cases ? Steps to create an S3 Bucket?

๐Ÿš€ ๐–๐ก๐š๐ญ ๐ข๐ฌ ๐ข๐ญ? Amazon S3 is a scalable object storage service designed to store and retrieve any amount of data from anywhere on the web. ๐ŸŒŸ ๐Š๐ž๐ฒ ๐…๐ž๐š๐ญ๐ฎ๐ซ๐ž๐ฌ: ๐Ÿ‘‰ ๐•๐ž๐ซ๐ฌ๐ข๐จ๐ง๐ข๐ง๐ : Keep multiple versions of your objects for backup a...

Mar 27, 20243 min read
What Is S3 Bucket? Key feature ? Real-time-example? 
Benefits? Use Cases ?
Steps to create an S3 Bucket?

What Is Ec2 ? Key feature ? Real-time-example? Benefit? and Steps to create an EC2?

Day 01 of #25Days25AWSServices So we start from the Amazon EC2 (Amazon Elastic Compute Cloud)Amazon Elastic Compute Cloud (EC2) Overview: ๐Ÿš€ ๐–๐ก๐š๐ญ ๐ข๐ฌ ๐ข๐ญ? EC2 is a web service provided by Amazon Web Services (AWS) that offers ๐ซ๐ž๐ฌ๐ข๐ณ๐š๐›๐ฅ๐ž...

Mar 26, 20243 min read
What Is Ec2 ? Key feature ? Real-time-example? Benefit? and Steps to create an EC2?

param

13 posts

Google Cloud Platform VPC Peering