Configured VPC through AWS-CLI by creating a High Availability Architecture of Networking

VPC — CLI
add tag to vpc(lwvpc1)
WebUI — VPC (lwvpc1)
public subnet — CLI
public subnet(lwlab1)
WEBUI-public subnet(lwlab1)
private subnet-CLI
private subnet(lwlab2)
WEBUI-private subnet(lwlab2)
IGW created -CLI
Internet Gateway(lwigw)
WEBUI-lwigw
lwigw attached to lwvpc1
WEBUI
key — newvpcclikey created using CLI
WEBUI
security group created using CLI
SecurityGroupForvpc
WEBUI
os1lab1 in ‘lwlab1'
WEBUI — os1lab1 in ‘us-east-1a’
os1lab1 with public IP
CLI
os2lab2 in ‘lwlab2'
WEBUI — os2lab2 in ‘us-east-1b’
os2lab2 with no public IP
No Piniging
CLI
Tag: NewRTforVPC
WEBUI — NewRTforVPC
CLI — Add route rule for ‘lwigw’(internet gateway) in ‘NewRTforVPC’(route table)
WEBUI
CLI
WEBUI
CLI
WEBUI — Inbound rule in os1lab1
WEBUI — Inbound rule in os2lab2
Pinging successfully
CLI
CLI
Tag added
WEBUI
NAT Gateway with public IP: 54:158:159:121(or elastic ip)
CLI
Tag: NewRTforVPCnatGW
WEBUI
CLI — Add route rule for ‘NewLab1NGW’(NAT gateway) in ‘NewRTforVPCnatGW’(route table)
WEBUI
CLI
WEBUI

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store