# Day 42: IAM Programmatic access and AWS CLI 🚀 ☁

AWS CLI The AWS Command Line Interface (AWS CLI) is a unified tool to manage your AWS services. With just one tool to download and configure, you can control multiple AWS services from the command line and automate them through scripts.

The AWS CLI v2 offers several new features including improved installers, new configuration options such as AWS IAM Identity Center (successor to AWS SSO), and various interactive features.  

### Task 01: Create AWS Access Keys

1. **Sign in to AWS Console:**
    
    * Navigate to the [AWS Console](https://aws.amazon.com/).
        
    * Sign in with your AWS account.
        
2. **Access IAM (Identity and Access Management):**
    
    * Go to the IAM service.
        
3. **Create Access Key:**
    
    * In the left sidebar, click on "Users."
        
    * Select your user.
        
    * Go to the "Security credentials" tab.
        
    * Under the "Access keys" section, click "Create access key."
        
    * Save the Access Key ID and Secret Access Key securely.
        

### Task 02: Install AWS CLI and Configure Credentials

1. **Install AWS CLI:**
    
    * Download and install the AWS CLI according to your operating system. You can find the installation instructions [here](https://docs.aws.amazon.com/cli/latest/userguide/install-cliv2.html).
        
2. **Configure AWS CLI:**
    
    * Open a terminal or command prompt.
        
    * Run the following command to configure the AWS CLI:
        
        ```bash
        aws configure
        ```
        
    * Enter the Access Key ID, Secret Access Key, region (e.g., us-east-1), and output format (e.g., json).
        
3. **Verify Configuration:**
    
    * Run a simple AWS CLI command to verify the configuration:
        
        ```bash
        aws s3 ls
        ```
        
        This command lists the contents of your S3 buckets.
        

### Task 03: Create a Hashnode Article Blog

Now, you can create a Hashnode article blog using the information gathered in Task 01 and Task 02. Share your experience, steps, and any additional insights you gained during the process. You can structure your blog as follows:

* **Introduction:**
    
    * Briefly introduce IAM Programmatic access and AWS CLI.
        
    * Highlight the importance of using programmatic access for managing AWS resources.
        
* **Task 01 - Creating AWS Access Keys:**
    
    * Explain the steps to create AWS Access keys through the AWS Console.
        
    * ![](https://cdn.hashnode.com/res/hashnode/image/upload/v1703067344930/6fef3a41-bda1-4c4c-8105-7e8f7cd2f553.png align="center")
        
    * Emphasize the need to securely store the Access Key ID and Secret Access Key.
        
        ![](https://cdn.hashnode.com/res/hashnode/image/upload/v1703067008787/d9c9512e-00ce-47e5-ac90-36341b092b76.png align="center")
        
* **Task 02 - Installing AWS CLI and Configuring Credentials:**
    
    * Guide readers through installing AWS CLI on their local machine.
        
    * ![](https://cdn.hashnode.com/res/hashnode/image/upload/v1703067566440/11590014-1e23-419b-9975-57023eb8d58f.png align="center")
        
    * Demonstrate the process of configuring AWS CLI with the Access Key ID, Secret Access Key, and other configurations.
        
    * ![](https://cdn.hashnode.com/res/hashnode/image/upload/v1703067624503/e36abbae-506b-485f-9f70-0ef3f1a6d697.png align="center")
        
* **Task 03 - Verifying Configuration and Testing:**
    
    * Show how to verify the AWS CLI configuration by running a simple command.
        
        ![](https://cdn.hashnode.com/res/hashnode/image/upload/v1703067780761/21f93fc4-a065-4f79-9009-d91dc8359bde.png align="center")
        
    * Provide an example of an AWS CLI command and its output.
        
        ![](https://cdn.hashnode.com/res/hashnode/image/upload/v1703067736140/b7e19631-1c39-4178-9701-8effd8f0e4a4.png align="center")
        
* **Conclusion:**
    
    * Summarize the benefits of using IAM programmatic access and AWS CLI.
        
    * Encourage readers to explore and use the AWS CLI for managing AWS resources efficiently.
        

Remember to include code snippets, screenshots, and any additional resources that might be helpful for your readers. Feel free to add your personal touch and style to make the blog engaging.
