When you signed up for AWS you created a Root user account. However we really should create another user (even if they have root like permissions) to run our cloud account.
Why do we need this user if they’re basically admin? Well we can reduce permissions but also delete the user without affecting the root user which we cannot do this on.
Let’s create an IAM (Identify and Access Management) user for our development use which will basically have admin permissions but would not be the user we use four out applications, this is essentially a developer account.
How do we set up our development user?
- Log into your AWS account as Root user
- In this search bar type IAM
- First we want to create a new group, so select Access management | User groups
- Click Create group
- Enter a name for the group, usually we’d probably have this name match the application that the group represents, so I’m going to do this for my unit conversion API app, hence my group is UnitConversionApiUsers for my unit conversions API
- In the Attach permissions policies let’s give this group AdministratorAccess permissions
- Now click the Create group button
- You should be placed back on the User groups screen and see out new group with zero users. So now click the Access management | Users option on the left of the screen
- Click the Create user button
- Enter a name for the user then click Next
- Leave the default Add user to group
- Check/tick the group you added then click the Next button
- Finally click Create user
- From the users screen on the Security credentials tab I have also clicked Enable console access, I also check the User must create new password at next sign-in, but you can autogenerate or create a custom password to suite
- Download the .csv file for later use, but don’t worry if you don’t it will contain User name, Password and Console sign-in URL so you can copy these if you prefer from the UI
Note that the console URL contains the account number, we can change this using the alias option, from the IAM dashboard select the Dashboard option. On the right of the screen you’ll see AWS Account and am option to Create an Account Alias, clicking this we can enter a name to replace the account number in the URL. You’ll see the Sign-in URL change to suit.
Try signing into AWS by using the console URL or it’s alias if you changed that and in my case I was prompted to change the password, so did that and was able to log in.
You’ll also want to go the the user that you created and click Create access key. When completed download the .csv and or copy the access id and secret key so you can used from the AWS CLI or IDE integration.