[x] Select us-west-2 region - this isn't mandatory for managing IAM resources, since they are global. But, it's a good habit since all of the rest of our resources are in one region
[x] Open the CloudShell in AWS
[x] Create an IAM user
[x] Run aws iam create-user --user-name UserName - replace UserName w/ desired username
[x] Run aws iam create-login-profile --user-name UserName --password ExamplePassword123! - replace UserName & password *important: password length must be 20 characters
[x] Create an IAM group
[x] Run aws iam create-group --group-name AdminGroup
[x] Attach user to group
[x] Run aws iam add-user-to-group --group-name AdminGroup --user-name UserName - replace UserName
[x] Attach AdministratorAccess policy to group
[x] Run aws iam attach-group-policy --policy-arn arn:aws:iam::aws:policy/AdministratorAccess --group-name AdminGroup - replace UserName
[x] Log in as the newly created user instead of continuing to log in as the root user.
[x] Generate access keys
[x] Open CloudShell
[x] Run aws iam create-access-key --user-name UserName > access_key.json
[x] Run nano access_key.json and copy the contents to a secure location (you'll need the keys when you set up AWS CLI below)
[x] create backend state - see this issue for instructions: https://github.com/hackforla/ops/issues/105
*users will need to create their backend state exactly as specified (i.e. using the same naming conventions)
After forking and cloning the repo, document next steps:
[x] create a new branch - include naming conventions
[x] make code changes
[x] change into terraform directory cd terraform
[x] run terraform init
[x] run terraform plan
[x] once changes look good, run git add ..., git commit ...
[x] run git push --set-upstream origin main branch_name
Overview
Update the CONTRIBUTING.md document as described below.
After creating an AWS account, we need to add:
aws iam create-user --user-name UserName
- replace UserName w/ desired usernameaws iam create-login-profile --user-name UserName --password ExamplePassword123!
- replace UserName & password *important: password length must be 20 charactersaws iam create-group --group-name AdminGroup
aws iam add-user-to-group --group-name AdminGroup --user-name UserName
- replace UserNameaws iam attach-group-policy --policy-arn arn:aws:iam::aws:policy/AdministratorAccess --group-name AdminGroup
- replace UserNameaws iam create-access-key --user-name UserName > access_key.json
nano access_key.json
and copy the contents to a secure location (you'll need the keys when you set up AWS CLI below)After installing Terraform, we need to add:
After forking and cloning the repo, document next steps:
cd terraform
terraform init
terraform plan
git add ...
,git commit ...
git push --set-upstream origin main branch_name