MYHOSPITALNOW.COM

Find Trusted Doctors & Hospitals

Discover healthcare providers, compare hospitals, and explore treatment options worldwide.

Free Treatment Quotes • Doctor Search • Hospital Comparison

Find Healthcare Options

www.myhospitalnow.com

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

Related Posts

AWS Tutorials: What is a Prefix List in AWS?

Here’s a complete guide to Prefix List and PREFIX_LIST_ID – particularly useful in AWS networking contexts such as Route Tables, Security Groups, and Network ACLs. 🔰 What…

Read More

How to set Static IP Address in Ubuntu?

On current Ubuntu Server releases, you set a static IP address in a Netplan YAML file under /etc/netplan/, then apply it with sudo netplan apply. The example…

Read More

Shell Bash Scripting: Assignment & Excercise – 15

This exercise builds a Bash script that takes an IP address, sends it to the free ip-api.com geolocation API with curl, and uses jq to print the…

Read More

How to setup Kubernetes AWS Gateway API Controller on Amazon EKS?

The AWS Gateway API Controller lets you use Kubernetes Gateway API resources (Gateway, HTTPRoute, GRPCRoute) on Amazon EKS. Instead of creating a load balancer, the controller turns…

Read More

Using Online Tools and Calculators to Streamline DevOps Operations and Problem-Solving

DevOps teams work in a fast and noisy environment. Builds fail, alerts fire, logs grow, and deadlines do not move. In that kind of pressure, even a…

Read More

AWS Architect & Design – Decision Matrix: NAT per AZ vs Single NAT vs Regional NAT for EKS Environments

Final comparison table (all approaches) Approach Architecture (AZ / NAT) Design Cost profile Parity to PROD Terraform complexity Risk Best-practice fit Pros Cons Typical fit (envs) A….

Read More