AWS CLI - Commands that are used more often and to get you interview ready.

DevOps Enthusiast, Cloud and Storage Engineer. LinkedIN: https://www.linkedin.com/in/hemant9singh
Create IAM user in AWS
aws iam create-user --user-name hemz{ "User": { "Path": "/", "UserName": "hemz", "UserId": "AIDA3JTDQ7MDG5LO5MG2V", "Arn": "arn:aws:iam::776524069638:user/hemz", "CreateDate": "2023-05-22T16:02:32+00:00" } }
Create Group
aws iam create-group --group-name Dev
{ "Group": { "Path": "/", "GroupName": "Dev", "GroupId": "AGPA3JTDQ7MDJBHTUL3OQ", "Arn": "arn:aws:iam::776524069638:group/Dev", "CreateDate": "2023-05-22T16:06:32+00:00"
Add user to group
aws iam add-user-to-group --user-name hemz --group-name Dev
List user in a group
aws iam get-group --group-name Dev
{ "Users": [ { "Path": "/", "UserName": "hemz", "UserId": "AIDA3JTDQ7MDG5LO5MG2V", "Arn": "arn:aws:iam::776524069638:user/hemz", "CreateDate": "2023-05-22T16:02:32+00:00" } ], "Group": { "Path": "/", "GroupName": "Dev", "GroupId": "AGPA3JTDQ7MDJBHTUL3OQ", "Arn": "arn:aws:iam::776524069638:group/Dev", "CreateDate": "2023-05-22T16:06:32+00:00" } }
List access key for user:
aws iam list-access-keys --user-name hemz
{ "AccessKeyMetadata": [] }
List S3 buckets.
aws s3 ls
Create bucket
aws s3 mb s3://ipl2025 make_bucket: ipl2025
Upload from local PC to S3 bucket
aws s3 cp C:\ x86+exadata.txt s3://ipl2025
upload: Desktop\x86+exadata.txt to s3://ipl2025/x86+exadata.txt
Many more to come, practice these commands from CLI and verify the Console if the changes have taken place.
You need to have AWS Access key and Secret key to perform AWS Configure.


