Create a user on AWS for the serverless framework
In this tutorial, we show how you can create a user with administrator rights to deploy your infrastructure on AWS.
Sign in to your AWS console and creating a new user by going to IAM > Users > Add User.
Now add the permissions you need for the created user. To keep things simple, we are going for the Administrator permission. It provides full access to AWS services and resources.
Note: When thinking about security, the administrator access is not a good choice, you can refine your user permissions by choosing only the AWS permissions you need.
Please keep in mind that you must download and keep the generated credentials in a safe place:
For the sake of simplicity, I added a new profile to the file
~/.aws/credentials
with the name
serverless
By adding the credentials to the AWS credentials file, I can use any AWS command using the desired profile.
to use this user you should set the following environment variable
export AWS_PROFILE="serverless"