CodeBriefly
Tech Magazine

How to Create AWS IAM User with Programmatic Access

0 6,178

Get real time updates directly on you device, subscribe now.

In this article, we will discuss “How to create AWS IAM user with programmatic access”. Programmatic Access user is required if we want to control AWS services from the command line interface (AWS CLI) or working with the SDK. AWS provides SDK for different languages such as PHP, Python, NodeJs and etc. When we create a programmatic access user, then AWS provides the AWS Access Key and AWS Secret Access Key. These are used by AWS CLI tools to authenticate to AWS and execute your commands. Similarly, for AWS official SDK use the same to authenticate AWS.

If you don’t have an AWS account, go ahead and create an AWS account. AWS provides most of the services under free tier plan, you can check here for more.

Steps to create AWS IAM user with programmatic access

Go to AWS Identity and Access Management (IAM) console, and from the left side menu click on the users. After that click on “Add User”.

Create AWS IAM User

 

Create a new “User name” and allow “Programmatic access”, and click on “Next: Permissions”.

AWS IAM User Access Type

 

Select “Attach existing policies directly” and in the search box write SNS, allow “AmazonSNSFullAccess” and click “Next:Tags”. Here, you can add policy as per your requirement

Set AWS IAM user Permissions

 

Although this part this is optional for the simply I just keep it simple. You can skip this point or create a tag as shown in the following screenshot.

AWS IAM user add tags

 

Reviews the IAM user settings and permissions then click on “Crete user”.

AWS IAM user review before create

 

Congratulate you successfully create AWS Access key and Secret access key. Download the key file and open the file in your favorite text editor. Keep them secret and safe.

AWS IAM user

 

Note that If you lose or forget your secret key, you cannot retrieve it. Instead, create a new access key and make the old key inactive.

Conclusion

I hope you enjoyed this article. Thank you for going through this post, hope this will helps you in your development. I will be glad if you can share this post on social network. Feel free to share your suggestions and queries in the comments area. I will share more on AWS services in my coming articles 🙂


You may like:

How Laravel Traits are Different from the Helpers in PHP

Significant Tips for Development of a Large Nuxt Js Web App

How to Handle Content Scraping with Pagination in Laravel

If you like our content, please consider buying us a coffee.
Thank you for your support!
Buy Me a Coffee

Get real time updates directly on you device, subscribe now.

Leave A Reply

Your email address will not be published.

This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish. AcceptRead More