AWS Access Key ID and Secret Access Key are used when you need to access AWS services programmatically. For example, you can use them with the AWS CLI to access services such as S3, EC2, and other AWS services.
In this article, we will see how to get the Access Key ID and Secret Access Key for an IAM user from the AWS Management Console.
Note: Keep your Secret Access Key secure. Do not share it with anyone or commit it to your source code.
- Goto to Identity and Access Management (IAM)
- Click on Users (Left side of the page under Access Management)
- Then click on your user name from the user list. You will be seeing the below screen.
- Click on "Security and credentials" and click on "Create access key" to creating the new access key and download the .csv file as per the below screenshot.
- Now you can see your access key and secret access key looks like as below.
- Access key ID - AAKIASPHRAQWAKKLAR87Secret access key - sZ+7JJKd++UjfjfuueFJV9pXXVDOv48xiBbm