YJAF AWS IAM Account Creation
This process covers the creation of IAM accounts for the YJAF AWS account.
This is a semi-automated process. New users are managed in Terraform, however, user credentials are issued manually.
Add users to code
- Create a module for the new user in users.tf.
Example (replace FirstnameSurname with actual user details):
module "FirstnameSurname" {
source = "../modules/user"
username = "FirstnameSurname"
tags = local.tags
}
2. Add users new username
(that you created in step 1) to appropriate list in env_config depending on level of access required.
Example:
i2n_devops_members = [
"FirstnameSurname",
]
This would add the new user FirstnameSurname
to the i2n_devops_members
group and allow them specifc permissions. All permissions and policies can be found elsewhere in this repository.
Raise a PR.
On merging the PR an automated Terraform Apply will run.
After the apply has finished successfully you can access the AWS account to get the users login details for the next steps.
Issue login details
Use AWS SSO to access the
Youth Justice Framework Management
account.Access the IAM console.
Go to the
Users
section.Click on the new user who was created via Terraform in the previous steps.
Navigate to the
Security credentials
tab.Click on the
Enable console access
button.On the next sectionm select
Auto generated password
and ensure theUser must create new password at next sign-in
box is checked. Then click on theEnable console access
button to save and move on.The next screen contains the login url, username and password. Make a note of these and provide these details to the new users via email.
Example email: “` Hi Firstname,
Please see below for your new Youth Justice AWS console login details:
Console URL: https://yjaf-mgmt.signin.aws.amazon.com/console
Username: FirstnameSurname
Password: **************
You will be asked to set a new password on first login.
You will also need to set up 2FA on the account. Please ensure the device name is identical to your Username i.e. FirstnameSurname.
Any issues please let me know. ”`
- Send email to users with new console login details.