Table of contents
Programmatic access users in IAM is required if you want to control or access your AWS services from the command line via AWS CLI tools. A programmatic access user will be given AWS Access Key ID and AWS Secret Access Key, which your AWS CLI tools will use to authenticate to AWS and execute your commands.
Programmatic access user for AWS can be created from the IAM dashboard.
Steps to create programmatic access user in AWS IAM:
Go to IAM section in your AWS Console.
Related: Identity and Access Management
Click on the Users link on the sidebar.
Click on the Add user button to add a new user.
Enter User name for the user.
Tick on Access key - Programmatic access checkbox in Access type section.
Click on the Next: Permissions button.
Configure access or permission for the user.
You choose any of the available methods to assign permissions to the user, but we'll be using the Attach Existing policies directly method in this example.
Click on Attach Existing policies directly tab.
Tick on the checkbox of the access policies that you want to assign to the user.
Click on the Next: Tags button.
Add tags to the user (optional) and click on Next: Review buttonw.
Review the summary of the user and click on the Create user button.
Click Download .csv button to download the login details.
Configure awscli using the details in the file downloaded csv file.
Related: How to configure AWS CLI tool
I am Sunil kumar, Please do follow me here and support #devOps #trainwithshubham #github #devopscommunity #devops #cloud #devoparticles #trainwithshubham
Connect with me over linkedin : linkedin.com/in/sunilkumar2807