Find the Best Cosmetic Hospitals

Explore trusted cosmetic hospitals and make a confident choice for your transformation.

“Invest in yourself — your confidence is always worth it.”

Explore Cosmetic Hospitals

Start your journey today — compare options in one place.

AWS Lab & Exercise: VPC – Virtual Private Cloud Assignment

Problem Statement:

Create a VPC. put 4 subnets into it with 2 private and 2 public in 2 different availability zones add 2 routing tables, 1 public and 1 private and assign to respective subnets. create internet gateway and attach it to public subnet. create NAT gateway attach it to private subnet.

Solution:

VPC – Virtual Private Cloud CIDR block – Classless Inter-Domain Routing -> to specify your VPC’s contiguous IP address range ->for example 10.0.0.0/26 means 2^(32-26) = 2^6 =64,that means we have 64 ip addresses ranging from 10.0.0.0 to 10.0.0.63 ->cannot create VPC larger than 10.0.0.0/16.


subnet-1: name: private-a vpc: vpcid availability zone: us-west-1a CIDR block: 10.0.0.0/28

subnet-2: name: private-c vpc: vpcid availability zone: us-west-1c CIDR block: 10.0.0.16/28

subnet-3: name: public-a vpc: vpcid availability zone: us-west-1a CIDR block: 10.0.0.32/28

subnet-4: name: public-c vpc: vpcid availability zone: us-west-1c CIDR block: 10.0.0.48/28

Route Table: Every VPC has one default route table created which has main attribute as "YES"
Code language: PHP (php)
  • name default route table as public-RT -> create a custom route table with name as private-RT ->add private subnets to private-RT route table and public to public-RT ->one subnet can be associated to only one route table
  • Internet Gateway: It a an entity which allows connectivity from our vpc to outside internet.
  • Add route to public-RT from 0.0.0.0/0 to internetgateway-id,so that public subnet will have access to outside internet.
  • NAT Gateway: As private instances have no public ip,NAT gateway provides internet connection to private instances.
  • choose one public subnet and create a NAT gateway ->go to private subnet and add route from 0.0.0.0/0 to natgateway-id

Find Trusted Cardiac Hospitals

Compare heart hospitals by city and services — all in one place.

Explore Hospitals
I’m a DevOps/SRE/DevSecOps/Cloud Expert passionate about sharing knowledge and experiences. I have worked at <a href="https://www.cotocus.com/">Cotocus</a>. I share tech blog at <a href="https://www.devopsschool.com/">DevOps School</a>, travel stories at <a href="https://www.holidaylandmark.com/">Holiday Landmark</a>, stock market tips at <a href="https://www.stocksmantra.in/">Stocks Mantra</a>, health and fitness guidance at <a href="https://www.mymedicplus.com/">My Medic Plus</a>, product reviews at <a href="https://www.truereviewnow.com/">TrueReviewNow</a> , and SEO strategies at <a href="https://www.wizbrand.com/">Wizbrand.</a> Do you want to learn <a href="https://www.quantumuting.com/">Quantum Computing</a>? <strong>Please find my social handles as below;</strong> <a href="https://www.rajeshkumar.xyz/">Rajesh Kumar Personal Website</a> <a href="https://www.youtube.com/TheDevOpsSchool">Rajesh Kumar at YOUTUBE</a> <a href="https://www.instagram.com/rajeshkumarin">Rajesh Kumar at INSTAGRAM</a> <a href="https://x.com/RajeshKumarIn">Rajesh Kumar at X</a> <a href="https://www.facebook.com/RajeshKumarLog">Rajesh Kumar at FACEBOOK</a> <a href="https://www.linkedin.com/in/rajeshkumarin/">Rajesh Kumar at LINKEDIN</a> <a href="https://www.wizbrand.com/rajeshkumar">Rajesh Kumar at WIZBRAND</a> <a href="https://www.rajeshkumar.xyz/dailylogs">Rajesh Kumar DailyLogs</a>

Related Posts

What is Amazon Redshift?

🟥 The Complete Guide to AWS Redshift – Cloud Data Warehousing at Scale As the digital economy expands, the amount of data generated by businesses is growing…

Read More

What is Amazon Redshift and use cases of Amazon Redshift?

What is Amazon Redshift? If you’re in the world of big data, you’ve probably heard of Amazon Redshift. But what exactly is it? Simply put, Amazon Redshift…

Read More

What is Amazon SimpleDB?

Amazon one of the big name, offering its customers computing infrastructure through Amazon Web Services since 2006. Aims to use its own infrastructure to provide the building…

Read More

AWS Tutorials: FinOps – AWS Certificate Manager (ACM) & Private CA cost optimisation strategies

Pricing FAQ For AWS Private Certificate Authority Pricing for AWS Certificate Manager You are not subject to an additional charge for SSL/TLS certificates that you manage with…

Read More

AWS Tutorials: How to Shutdown (Stop / Start) Relational Database Service?

To shutdown (stop) and start a Relational Database Service (RDS) instance in AWS, you can follow these steps: Stopping an RDS Instance Starting an RDS Instance AWS…

Read More

What is AWS App Mesh and use cases of AWS App Mesh?

What is AWS App Mesh? AWS App Mesh is a service mesh offering from Amazon Web Services that facilitates communication and management of your microservices across multiple…

Read More