Skip to main content

How to Create AWS IAM User with Programmatic Access

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

Comments

Popular posts from this blog

Laravel Logging Guzzle Requests in File

In this article, we will discuss “Laravel Logging Guzzle Requests in File”. In the multiple scenarios, we have to use third-party API’s in our project and test those API using postman or any other tool. But also required to maintain a log for each request, such as what we send (request)? and what we receive (response)? Today, […] Read out the full post at here

How to Use SSH with AWS EC2 Instance?

In this article, we will discuss "How to Use SSH with AWS EC2 Instance?" . As I already explain the setup of EC2 Instance and the use of an Elastic IP in my previous article. Today, we will learn how to connect an EC2 instance using SSH. If still, you have not read my previous articles then I recommend checking them once for a better understanding. Prerequisites A running EC2 Instance . Elastic IP (Optional for this article) ".pem" file, which is downloaded when setup the EC2 Instance. If not having the ".pem" file, then you have to create new key/value pairs. Connect via Terminal or WSL(Window Subsystem for Linux) Open your terminal and go to the directory where you downloaded your ".pem" file. Use the following command to connect with the server. ssh -i "****.pem" username@<publicDNS> or <IP Address> The same terminal command can be used in the windows Linux terminal. I'm using ubuntu on my windows machine...

How to Setup and Install Next.js App?

In this article, we will discuss "How to Setup and Install Next.js App" from scratch. What is React.js and Next.js? "React.js" is a JavaScript library for building user interfaces (elements that users see and interacting on-screen). Basically, React provide us some helpful functions to build UI, and leaves it on us where to use those functions in the application. "Next.js" is a React framework. It is maintained by "Vercel" . Next.js features to solve common application requirements such as routing, data fetching, integrations - all while improving the developer and end-user experience. Why we use Next.js ? Next.js comes with the some additional features to solve come application requirements such as: We can build SSG (Static Site Generation), SSR (Server-Side Rendering) and SPA (Single Page Application) apps. Hot code Reloading: Reload the page when it detects any change saved. Routing: No need to configure any route. Files put in the pages fol...