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

Basic Use of Model Factories in Laravel

In this article, we will discuss the basic use of Model Factories in Laravel. Laravel comes with the feature called model factories that are offered to made fake models quickly. It’s used in the database testing and database seeding. Let’s start the discussion on this feature by... Read out the full post at here

How to setup Amazon Kinesis Data Stream with Amazon Pinpoint (Part 3)?

In this article, we will discuss "How to setup Amazon Kinesis Data Stream with Amazon Pinpoint (Part 3)?". This article is the third part of our Amazon Pinpoint Series. For better understanding, I recommend to readout the previous article. How to Setup AWS Pinpoint (Part 1) How to Setup AWS Pinpoint SMS Two-Way Communication (Part 2)? Streaming Amazon Pinpoint events to Kinesis In Amazon Pinpoint, when we send a transactional SMS or email message then an event will occur as per the action performed. In a simple way, Amazon Pinpoint sends information about events to Amazon Kinesis. Which, we read and process as per our requirement. We are talking about the SMS so we read the stream data to fetch the delivery reports of our SMSs. There are two types of streams given by the Amazon Kinesis such as Data Firehose, and Data Streams. Amazon Pinpoint can also stream data to Kinesis Data Streams, which ingests and stores multiple data streams for processing by analytics applications. F...

How to Manage Elastic IP in AWS?

In this article, we will discuss "How to Manage Elastic IP in AWS?" . Here, you will learn the use of Elastic IP addresses and how to assign it to your EC2 Instance. If you are new with EC2 Instance then check out my previous article, "How to setup an EC2 Instance on AWS" . EC2 (Amazon Elastic Compute Cloud) provide us an ability to create, start, stop and terminate the instance at any time. This will creates a challenge with IP addresses, because restarting an instance or replacing a terminated instance with newly created instance, will result in a new IP address. Now the question is "How to reference a machine when the IP is constantly change?" . We can handle this situation with the use of Elastic IP address. We can associate a single Elastic IP address to different Ec2 Instances. You can immediately associate a new Ec2 Instance with the Elastic IP address if the EC2 instance is stopped or terminated. After the back-end EC2 instance changes, our exist...