In Part 1 - https://www.letsdosometech.com/post/part-1-building-a-short-end-to-end-environment-in-oci we have covered the introduction, architecture, areas to cover and how to build compartments.

Areas covered so far :
- Building Compartments. ( Completed in Part 1)
- Building VCN’s
- Building Compute instances.
- Building Load Balancer.
- Building DB Systems.
- Create domain zones.
- Create WAF.
- Create VCN Flow logs.
- Create Load balancer Logging.
- Create object storage & replication policies.
- Create resources in secondary region.
- Create DRG’s in both regions.
- Remote peering connections.
- Validate connectivity between both regions.
Let's continue with creating VCN's in this article.
Building a VCN (Hyderabad Region):
Create a VCN by name WebVCN with the CIDR block – 10.0.0.0/16 in Hyderabad region.
Under VCN - Click on create VCN and proceed with filling the details as below and click on create VCN.

It looks as below post creation -

Creating the following subnets -
public subnet - mgmtsubnet with CIDR - 10.0.4.0/24
public subnet - lbsubnet with CIDR - 10.0.3.0/24
private subnet - appsubnet with CIDR - 10.0.2.0/24
private subnet - dbsubnet with CIDR - 10.0.5.0/24
Steps for creating a subnet - (Appsubnet)


Similarly rest of the subnets should be created and it would be looked as below -

Create a private security list for the App subnet for allowing connections to & fro from the CIRD range 10.0.0.0/16 for ports 80,8080 & 22.



Tag the PrivateSL to the Appsubnet and delete the existing tagged default Security list.


Creation of Internet Gateway:

Adding a route in the VCN's default route table to the internet using the Internet Gateway just created -

Creation of Service gateway for access to Oracle services from the private subnet -

Create a NAT Gateway:

Update the route rules for the AppSubnet to add the NAT gateway & Service gateway.

Let's continue with creating of Compute instances, DB Systems and Load balancer in the next part.
Rest of the parts can be accessed through -
Commenti