Skip to content

Latest commit

 

History

History
28 lines (22 loc) · 1012 Bytes

File metadata and controls

28 lines (22 loc) · 1012 Bytes

AWS-CLI

Command start with aws. You can perform all actions you can do through AWS Console.


**Points**
* Roles are more secure than storing your access key and secret key on individual EC2 instances.
* Roles are easier to manage.
* Roles can be assigned to any EC2 instance after it is created using both the console and commandline.
* Roles are universal - Can be used in any region.

Boot Strap Scripts
Way of automating EC2 instances deployments. All commandline commands can be write in Scripts. An example script is shown below that can be write under 'Configure instances' at the time of creating an EC2 instance.

It always begin with (path of interpreter) - #!/bin/bash

Example Script ##

yum update -y
yum install httpd -y
service httpd start
chkconfig httpd on
cd /var/www/html
echo"

Welcome

" > index.html
aws s3 mb s3://jdjgf6474
aws s3 cp index.html s3://jdjgf6474