IAM Programmatic access and AWS CLI 🚀 ☁

Unnati GuptaUnnati Gupta
3 min read

IAM Programmatic access:

To access your AWS account from a terminal or system, you can use AWS Access keys and AWS Secret Access keys

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.

AWS CLI helps manage complicated clusters on AWS.

❄Tasks:

Task 1:

Create AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY from AWS Console.

Step 1: Log in to AWS using the root or IAM users. (if you have permission to create EC2-instance as an IAM user)

Step 2: Go to your account > security credentials.

Step 3: Click on the Create Access key.

Step 4: Verify the Access key created successfully & download the .csv file.

( Don't forget to download the .csv file. It's one one-time option is there)

Task 2:

Set up and install AWS CLI and configure your account credentials for root users.

Step 1: Open CMD in your local system, and install AWS CLI.

msiexec.exe /i https://awscli.amazonaws.com/AWSCLIV2.msi
msiexec.exe /i https://awscli.amazonaws.com/AWSCLIV2.msi /qn
aws --version

Verify that AWS CLI is installed successfully.

Step 2: Configure Account credentials by using AWS CLI and Verify it.

(Give Access Key, and Security Key from downloaded .csv file, Region Name & output format is JSON)

aws configure
aws sts get-caller-identity

Congratulations💖!! successfully configure account credentials for the root user.

Task 3:

Set up and install AWS CLI and configure your account credentials for IAM users.

Step 1: Create an IAM user to give all the related info.

Step 2: Verify that the IAM user has been created successfully.

Step 3: Create an Access key and secret Key for the IAM user by click on "Create Access Key".

Step 4: Verify Access Key has been created successfully & don't forget to download the .csv file.

Step 5: Let's Configure Account Credentials for IAM users.

Step 6: Verify the Access Key and also see at the end it's for IAM_USER1.

Congratulations💖!! successfully configure account credentials for the IAM user.

In the Next Article, we will deep dive into AWS CLI...

Thank you for giving your precious time to read this blog/article and if any suggestions or improvements are required on my blogs feel free to connect on LinkedIn Unnati Gupta. Happy Learning 💥🙌***!!!***

0
Subscribe to my newsletter

Read articles from Unnati Gupta directly inside your inbox. Subscribe to the newsletter, and don't miss out.

Written by

Unnati Gupta
Unnati Gupta

👨‍💻 DevOps Engineer at 6D Technology Passionate about bridging the gap between development and operations, I'm a dedicated DevOps Engineer at 6D Technology. With a strong belief in the power of automation, continuous integration, and continuous delivery, I thrive in optimizing software development pipelines for efficiency and reliability. 🚀 Exploring the DevOps Universe In my articles, I delve into the fascinating world of DevOps, where I share insights, best practices, and real-world experiences. From containerization and orchestration to CI/CD pipelines and infrastructure as code, I'm here to demystify the complex and empower fellow developers and ops enthusiasts. 📝 Blogging for Knowledge Sharing As a tech enthusiast and a lifelong learner, I'm committed to sharing knowledge. My articles aim to simplify complex concepts and provide practical tips that help teams and individuals streamline their software delivery processes. 🌐 Connect with Me Let's connect and explore the ever-evolving landscape of DevOps together. Feel free to reach out, comment, or share your thoughts on my articles. Together, we can foster a culture of collaboration and innovation in the DevOps community. 🔗 Social Links LinkedIn: https://www.linkedin.com/in/unnati-gupta-%F0%9F%87%AE%F0%9F%87%B3-a62563183/ GitHub: https://github.com/DevUnnati 📩 Contact Have questions or looking to collaborate? You can reach me at unnatigupta527@gmail.com Happy Learning!!