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 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...

How to use trackBy in Angular with Example

In this article, we will discuss "How to use trackBy in Angular" . Basically, " trackBy " is used to improve the performance of an angular application. Today, I will try to explain the use of trackBy with an example. Why do we need trackBy in Angular? By default, no need to use trackBy in Angular. But with large collections of data, angular ngFor directive may perform poorly. For example, a small change of data such as adding a new record, editing, or deleting a record from the collection. The angular framework will remove all the DOM elements that are associated with the data and will create them again in the DOM tree even if the same data is coming. Here, a lot of DOM manipulation will happen in the background if a large amount of data comes from the API then the application performance will suffer. Angular trackBy example Angular provides us function trackBy which helps us to track the items which have been added or deleted. The trackBy function takes two argum...