# How to configure the AWS CLI Command Line Interface

---

## AWS CLI

AWS CLI (Amazon Web Services Command Line Interface) is a unified tool provided by Amazon for managing AWS services from the command line.

It allows users to interact with various AWS services and resources directly through text-based commands, making it easier to automate tasks, script actions, and integrate AWS services into workflows.

---

### Configure the AWS SSO

```ruby
aws configure sso
```

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1715953674898/6e8cfc8b-7f30-4ac1-be3c-b86c9a3deecf.png align="center")

AWS SSO is a service provided by Amazon Web Services that makes it easy to centrally manage access to multiple AWS accounts and business applications and to provide users with single sign-on access to them.

---

### Provide a session name

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1715953779634/a8dbe466-c964-4d35-b264-0ff6dc709131.png align="center")

---

### Set the SSO start URL

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1715953914671/6e78a3d4-8113-4234-81a8-2a11699b5405.png align="center")

The Single Sign-On (SSO) start URL is a specific URL provided by AWS Single Sign-On that directs users to the SSO login page or the SSO portal where they can sign in and access their assigned AWS accounts and applications.

This URL is unique to your AWS account and is generated by AWS SSO.

---

### Choose a region

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1715954012843/102a24c3-4cdf-4ea3-af4d-79977d4cd140.png align="center")

---

### Scope

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1715954078895/1ae32a51-7dfb-4def-b114-2d250592c146.png align="center")

---

### Authorize device

A web page is going to open.

In the terminal

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1715955744992/8eab1e2a-d8e4-4901-ab88-8a23ff85b20b.png align="center")

In the browser

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1715955789881/7040e3ae-d1c0-4e6c-8340-8ecd35e24cf0.png align="center")

---

### Allow boto-core-client-dev

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1715955848341/7a6dd03d-c7d4-4b06-a338-334b0b622a3d.png align="center")

Botocore is the low-level library that powers the AWS CLI (Command Line Interface) and provides the foundation for the AWS SDKs (Software Development Kits) for Python.

It's responsible for handling the underlying communication with AWS services, such as sending requests and receiving responses.

---

### Set default client region

After the approval of `botocore-client-dev`

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1715956057049/d0798cee-f55c-43a0-9306-8ad3750e798f.png align="center")

Come back to the terminal and set the default client region

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1715956124343/6cb7c1b5-38a6-4a01-a422-b96d4fa1abc3.png align="center")

---

### Set CLI default output format

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1715956187733/18e1ecb4-90ee-43ad-bca3-e64e446327c3.png align="center")

---

## Check

### Visualize your profile

As soon as you hit enter after the last part, you'll see your profile.

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1715963741215/5ae71022-17a2-4831-8689-2a3cf498b4a2.png align="center")

---

### Test

```ruby
aws sts get-caller-identity --profile your_profile_name
```

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1715963868971/45e280ed-2c96-44e8-b749-10d9040045d1.png align="center")

---

## **Done**

---

### Conclusion

By following these steps, you can easily set up your AWS command line interface.

---

### **Celebrate**

![The It Crowd Birthday GIFs | Tenor](https://media.tenor.com/kDyYq4PQuIgAAAAC/clapping-it-crowd.gif align="left")

---

### **Reach me out**

* [**Github**](https://github.com/alexcalaca)
    
* [**LinkedIn**](https://linkedin.com/in/alexandrecalacaofficial)
    
* [**Hashnode**](https://hashnode.com/onboard?next=/@alexandrecalaca)
    
* [**Youtube**](https://www.youtube.com/@alexandrecalacaofficial)
    

---

### Final thoughts

Thank you for reading this article.

If you have any questions, thoughts, suggestions, or corrections, please share them with us.

We appreciate your feedback and look forward to hearing from you.

Feel free to suggest topics for future blog articles. Until next time!

---
