Cli Commands of Aws

You might also like

Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 1

CLI COMMANDS OF AWS

#aws configure ------then give access,secret key,zone <--


#aws s3 ls ------to check buckets names
#aws s3 mb s3://bucketname ------to make bucket
#aws s3 rm-rvf s3://bucketname ------to remove bucket which contains
material
#aws s3 rb s3://randibaaz --force ------to remove bucket with objects
#aws s3 sync . s3://bucketname ------go to the folder first then use it
to put object in bucket

IAM COMMANDS

##aws iam list-users ---to see iam user


##aws iam create-user --user-name arunkk ---TO CREATE IAM
USER
##aws iam create-group --group-name bakri ---to create iam
group
##aws iam add-user-to-group --group-name bakri --user-name arunkk ---to add
user to group
##aws iam remove-user-from-group --user-name arunkk --group-name bakri ---to
remove user from group

HOST WEBSITE ON LINUX INSTANCE

##COMMANDS
before creating linux instance and taking ssh
create iam role which give access to ec2 of s3 buckets
while creating linux instance add iam role, check on ssh and http service

after creating linux


take access through ssh
#sudo su
#yum update -y
#yum install httpd -y
#systemctl start httpd
#systemctl enable httpd
#aws s3 cp --recursive s3://bucketname/ /var/www/html/

You might also like