AWS INSTANCE CONFIGURATION USING NAT GATEWAY

  1. VPC => It is a logically isolated section of the AWS Cloud where you can launch AWS resources in a virtual network that you define. You have complete control over your virtual networking environment, including selection of your own IP address range, creation of subnets, and configuration of route tables and network gateways. You can use both IPv4 and IPv6 in your VPC for secure and easy access to resources and applications.
  2. Security Group => A security group acts as a virtual firewall for your EC2 instances to control incoming and outgoing traffic. Inbound rules control the incoming traffic to your instance, and outbound rules control the outgoing traffic from your instance. If you don’t specify a security group, instance in cloud uses the default security group.
  3. Subnets => It is a logical subdivision of an IP network. The practice of dividing a network into two or more networks is called subnetting. AWS provides two types of subnetting one is Public which allow the internet to access the machine and another is private which is hidden from the internet.
  4. Internet Gateway => An internet gateway is a horizontally scaled, redundant, and highly available VPC component that allows communication between your VPC and the internet.An internet gateway serves two purposes: to provide a target in your VPC route tables for internet-routable traffic, and to perform network address translation (NAT) for instances that have been assigned public IPv4 addresses.
  5. Terraform => Terraform is an open-source infrastructure as code software tool created by HashiCorp. Users define and provision data center infrastructure using a declarative configuration language known as HashiCorp Configuration Language (HCL), or optionally JSON. Basically it is used to write the code and as an output the coded stuff output is made inside the cloud itself.
  6. Routing Table => A routing table is a set of rules, often viewed in table format, that is used to determine where data packets traveling over an Internet Protocol (IP) network will be directed. All IP-enabled devices, including routers and switches, use routing tables.A routing table contains the information necessary to forward a packet along the best path toward its destination.
  7. NAT Gateway => NAT Gateway, also known as Network Address Translation Gateway, is used to enable instances present in a private subnet to help connect to the internet or AWS services. In addition to this, the gateway makes sure that the internet doesn’t initiate a connection with the instances. NAT Gateway service is a fully managed service by Amazon, that doesn’t require any efforts from the administrator.
  8. Elastic IP => An Elastic IP address is a static IPv4 address designed for dynamic cloud computing. An Elastic IP address is associated with your AWS account. With an Elastic IP address, you can mask the failure of an instance or software by rapidly remapping the address to another instance in your account.
LOGGED IN AWS ACCOUNT
  1. terraform init
  2. terraform validate
  3. terraform apply or terraform apply -auto-approve
TERRAFORM INIT
TERRAFORM VALIDATE
TERRAFORM APPLY
VPC CREATED
  1. terraform init
  2. terraform validate
  3. terraform apply or terraform apply -auto-approve
TERRAFORM INIT
TERRAFORM VALIDATE
TERRAFORM APPLY
SUBNETS CREATED
  1. terraform init
  2. terraform validate
  3. terraform apply or terraform apply -auto-approve
TERRAFORM INIT
TERRAFORM VALIDATE
TERRAFORM APPLY
INTERNET GATEWAY CREATED
  1. terraform init
  2. terraform validate
  3. terraform apply or terraform apply -auto-approve
TERRAFORM INIT
TERRAFORM VALIDATE
TERRAFORM APPLY
ROUTING TABLE CREATED
  1. terraform init
  2. terraform validate
  3. terraform apply or terraform apply -auto-approve
TERRAFORM INIT
TERRAFORM VALIDATE
TERRAFORM APPLY
ELASTIC IP CREATED
  1. terraform init
  2. terraform validate
  3. terraform apply or terraform apply -auto-approve
TERRAFORM INIT
TERRAFORM VALIDATE
TERRAFORM APPLY
NAT GATEWAY CREATED
SECURITY GROUP PART -1
SECURITY GROUP PART-2
  1. terraform init
  2. terraform validate
  3. terraform apply or terraform apply -auto-approve
TEERAFORM INIT
TERRAFORM VALIDATE
TERRAFORM APPLY
SECURITY GROUP CREATED
  1. terraform init
  2. terraform validate
  3. terraform apply or terraform apply -auto-approve
TERRAFORM INIT
TERRAFORM VALIDATE
TERRAFORM APPLY
INSTANCES CREATED
WORDPRESS SITE LAUNCHED

I am a tech enthusiast, researcher and an integration seeker. I love to explore and learn about the right technology and right concepts from its foundation.

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

ADN (API DELIVERY NETWORK) GIVES SUPERPOWERS TO OUR APIs

Handling JSON data for DynamoDB using Python

Why Dart is the Language to Learn of 2018

Best Dedicated Server Hosting India In 2021 Blog- Web Hosting Services | Best Cloud Hosting |…

Robot Framework SSH tutorial with example

SSH connection onto remote machine

My Li’l Experience Learning Python

Using Scala, SBT and IntelliJ IDEA

July Release of Adobe Document Services: PDF Embed and PDF Tools

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
Rishabh Jain

Rishabh Jain

I am a tech enthusiast, researcher and an integration seeker. I love to explore and learn about the right technology and right concepts from its foundation.

More from Medium

Create Slack Notifications for AWS CloudWatch Alarms

Use CloudFormation to Launch an Amazon EC2 Web Server

AWS Machine Learning Use Case using Serverless…

Configuring an S3 bucket to host a static website combined with AWS CloudFront.