๐ŸŒ๐Ÿ’ป DevOps 7.5: Exploring AWS CLI ๐Ÿ”ง๐Ÿš€

"Unleashing the Power of AWS CLI: Navigate the Cloud with Command-Line Mastery"

ยท

2 min read

๐ŸŒ๐Ÿ’ป DevOps 7.5: Exploring AWS CLI ๐Ÿ”ง๐Ÿš€

Introduction:

AWS CLI (Command Line Interface) is a powerful tool that allows users to interact with Amazon Web Services through a command-line interface. It provides a set of commands for controlling AWS services, managing resources, and automating tasks. With AWS CLI, users can efficiently navigate and manipulate various AWS functionalities directly from the command line, streamlining the management of cloud resources. Whether you're a developer, system administrator, or DevOps professional, AWS CLI offers a flexible and efficient way to work with AWS services in a text-based environment.

Installation:

First Install aws-cli in local computer using the installation documentation.
For e.g. - you can use brew - brew install awscli

Configuring aws-cli:

  1. First we have create an IAM user.

  2. Go to IAM dashboard. Then go "Users" present in the sidebar.

  3. Click on create user. And go to "Next"

  4. Now set the policies. And go to "Next". And click "Create User".

  5. So now click awscli user. Go to "security credentials"

  6. Click on "Create Access Key".

  7. Select Command Line Interface. And click next and next again.

  8. NOTE: Do not reveal your access key and secret access key to anyone.

  9. Go into your CLI and type "aws configure". And Enter access and secret access key.

  10. You can enter region as us-east-1 and output as json.

  11. All the information will be stored in this path ls ~/.aws/ .

  12. You can aws ec2 describe-instances.To show all the instances.

Do refer to awscli documentation for installation and commands - https://docs.aws.amazon.com/cli/

I trust you've mastered the art of crafting IAM users and configuring AWS CLI to seamlessly navigate the expansive world of Amazon Web Services.

Did you find this article valuable?

Support Chronicles of Tech ๐Ÿ“š๐Ÿ’ป by becoming a sponsor. Any amount is appreciated!

ย