Saturday, April 30, 2016

Setting up with Amazon EC2

Below are the main tasks in setting up Amazon EC2 

1. Sign up with AWS 
2. Create an IAM user 
3. Create a Key pair
4. Create Virtual Private cloud 
5. Create security Group 

1) Sign Up With AWS : When a developer sign up for AWS, he is automatically signed up for all the AWS services. One can get started with it for free. 
2) Create an IAM user : Services in AWS such as EC2 require that developer provide credentials when he access them so that service can determine whether he has permission to access them. The console requires requires the password. Developer can create access keys for the AWS account to access the command line interface of the API. However, it is recommended to use the AWS identity and access management (IAM) instead. First we need to create an IAM user and then add the user to the IAM group with administrative permissions or and grant this user administrative permissions. Developer can access the AWS using a special URL and the credentials for the IAM user. 
3) Create a Key Pair : AWS uses PKI cryptography to secure the login information for the instance. A linux instance has no password, one should use a key pair to launch the instance, then provide the private key when one use login using SSH. The Key pair can be created using EC2 console. If planning to launch instances in each region, then we should have key pair for each region. 
4) Creating Virtual Private cloud : Amazon VPC allows a developer to launch AWS resources into a Virtual network that developer has defined.
5) Last Step is to create the security Group: Security group acts as firewall for the associated instances, controlling both inbound and outbound traffic at the instance level. One should add rules to security group to enable to connect to instance from their IP address using SSH. Developer can also add rules that allow inbound and outbound HTTP and HTTPs access from anywhere. 


references:

No comments:

Post a Comment