YJAF AWS IAM Account Deletion
This process covers the removal of IAM accounts for the YJAF AWS account.
The existing pipelines are not able to delete accounts so there are some manual steps before you update and apply the terraform code.
Manual steps to delete IAM Account
Access the Youth Justice Framework Management AWS account via SSO.
Go to the IAM Console.
Click on
Users
tab.Click on the user name you will be deleting.
Click on the
Security Credentials
tabGo to the
Multi-factor authentication (MFA)
section. Select all devices and click on theRemove
button.Then click on the
Delete
button in the top right corner of the UI. You’ll need to confirm deletion on the next screen and save changes. The user IAM account will now be deleted.
Update yjaf-infra-aws-mgmt and apply terraform
There are two files to update:
Remove the user name for the relevant lists in the yjaf-mgmt-users.tfvars file.
Remove the user module block from the user.tf file.
Raise a PR for changes to be reviewed by the Team. Merge changes to run automated pipelines.
Done.