You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The `SuperAdmin` user is necessary for performing administrative functions that IAM roles cannot, ensuring secure and controlled access to the root account while minimizing risks. These are the step-by-step instructions for creating a `SuperAdmin` user in AWS, including setting permissions, enabling MFA, and securely storing credentials in 1Password.
13
+
The `SuperAdmin` user is recommended for performing certain high-risk administrative tasks that modify IAM permissions affecting users on SSO or SAML. We don't recommend making these types of changes with your own SSO or SAML identity because a misconfiguration could lead to account lockout. This guide outlines the steps to create a secure `SuperAdmin` user in AWS, including setting permissions, enabling MFA, and storing credentials safely in 1Password.
12
14
</Intro>
13
15
14
-
[REFARCH-73 - Provision SuperAdmin User for Root Level IAM Management](/layers/accounts/prepare-aws-organization/#create-the-superadmin-iam-user)
15
-
16
-
### Prerequisites
17
-
18
16
[Follow the prerequisites steps in the How-to Get Started guide](/layers/project/#0-prerequisites)
19
17
20
-
## Basic Instructions
21
-
22
-
Login to the AWS `root` account using the root credentials.
23
-
24
-
In the IAM console, select "Users" on the sidebar.
25
-
26
-
1. Click "Add users" button.
27
-
1. Enter "SuperAdmin" for "User name". Leave "AWS Management Console access unchecked." Click "Next".
28
-
1. Under "Set permissions", select "Attach existing policies directly". A list should appear, from which you should
29
-
check "AdministratorAccess". Click "Next".
30
-
1. Review and click "Create user".
31
-
1. The "Success" page should show you the "Access key ID" and hidden Secret access key" which can be revealed by
32
-
clicking "Show". Copy these to your secure credentials storage as you will need them shortly.
33
-
1. Click "Close" to return to the IAM console. Select "Users" on the sidebar if it is not already selected. You should
34
-
see a list of users. Click the user name "SuperAdmin" (which should be a hyperlink) to take you to the Users ->
35
-
SuperAdmin "Summary" page.
36
-
1. Click on the "Security credentials" tab. In the 'Multi-Factor Authentication (MFA)' section, click "Assign a virtual
37
-
MFA device".
38
-
1. Enter a name that corresponds to how you will store the MFA token (e.g. '1password')
39
-
1. Select 'Authenticator App' as the MFA device type and click 'Next'.
40
-
1. Follow the instructions to set up the MFA device. Store the TOTP key in your secure credentials storage.
41
-
1. You should be taken back to the "Security Credentials" tab, but now the "Assigned MFA device" field should have an
42
-
ARN like `arn:aws:iam::<account-number>:mfa/SuperAdmin`. Copy the ARN and keep it with the Access Key.
43
-
1. Now we need to create an Access Key for CLI access. Click on the "Create Access Key" under "Access Keys".
44
-
1. Select "Command Line Interface" and click the "I understand..." checkbox then click 'Next'.
45
-
1. Enter a description if you like, such as 'SuperAdmin CLI Access' and click 'Create'.
46
-
47
-
### Storing SuperAdmin credentials in 1Password
48
-
49
-
The `SuperAdmin` credentials should be properly stored in 1Password. Relative to other potential 1Password item types,
50
-
the most appropriate 1Password item type for these credentials is `login`. Since these are programmatic credentials and
51
-
not an actual login with an endpoint from which the website favicon can be retrieved, the icon for this item should be
52
-
manually set to the [AWS logo](https://github.com/cryptotradev/vymd-infra/blob/main/docs/img/awspng). Additionally, the
53
-
password field should be kept empty. For convenience in retrieving the TOTP code when using Leapp, save `com.leapp.app`
54
-
as a website URL.
55
-
56
-
Set the username to `SuperAdmin`, create fields for the `AWS_ACCESS_KEY_ID`, `AWS_SECRET_ACCESS_KEY`, and the TOTP
57
-
(known as One Time Password field type in 1password) via the AWS virtual MFA device's secret.
58
-
59
-
Finally, leave a note for this item in the following format:
60
-
61
-
```
62
-
This account's Access Key should be made inactive when not needed.
63
-
64
-
CURRENT STATUS: ACTIVE
65
-
66
-
Use this account for API/command line access to administrative functions that IAM roles cannot do, such as provision IAM roles.
67
-
68
-
This account should not be allowed to log in to the AWS console, and therefore does not have a password.
69
-
70
-
Root account ID: [AWS ACCOUNT ID]
71
-
72
-
User ARN arn:aws:iam::[AWS ACCOUNT ID]:user/SuperAdmin
3. In the IAM console, select `Users` on the sidebar
37
+
1. Under "Set permissions", select "Attach existing policies directly". A list should appear, from which you should check "AdministratorAccess". Click "Next: Tags"
1. The Success page should show you the "Access key ID" and hidden "Secret access key" which can be revealed by clicking "Show". Copy these to your secure credentials storage as you will need them shortly
6. Under `Set permissions` , select `Attach existing policies directly` . A list should appear, from which you should
105
-
check `AdministratorAccess` . Click `Next: Tags` at the bottom right corner of the page
47
+
1. Click "Close" to return to the IAM console. Select "Users" on the sidebar if it is not already selected. You should see a list of users. Click the user name "SuperAdmin" (which should be a hyperlink) to take you to the Users -> SuperAdmin "Summary" page
11. You should a list of users. Click the user name `SuperAdmin` (which should be a hyperlink)
67
+
1. You should be taken back to the "Security Credentials" tab, but now the "Assigned MFA device" field should have an ARN like `arn:aws:iam::<account-number>:mfa/SuperAdmin`
The `SuperAdmin` credentials should be properly stored in 1Password. Relative to other potential 1Password item types, the most appropriate 1Password item type for these credentials is `login`. Since these are programmatic credentials and not an actual login with an endpoint from which the website favicon can be retrieved. Additionally, the password field should be kept empty. For convenience in retrieving the TOTP code when using Leapp, save `com.leapp.app` as a website URL.
134
84
135
-
15. Press the `Show secret key` button
85
+
<Steps>
86
+
1. Set the username to `SuperAdmin`
87
+
1. Create fields for the `AWS_ACCESS_KEY_ID`, `AWS_SECRET_ACCESS_KEY`, and the TOTP (known as One Time Password field type in 1password) via the AWS virtual MFA device's secret
replacing `us-west-2` with the primary region where you will be hosting your company's infrastructure,
173
-
174
-
and `arn:aws:iam::<account-number>:mfa/SuperAdmin` with the "Assigned MFA device" ARN from the previous step.
175
-
176
-
21.
177
-
178
-
:::tip
179
-
180
-
Done!
181
-
182
-
:::
183
-
184
-
### Related articles
185
-
186
-
:::note
187
-
188
-
The content by label feature displays related articles automatically, based on labels you choose. To edit options for this feature, select the placeholder below and tap the pencil icon.
189
-
190
-
:::
191
-
192
-
| Related issues | |
193
-
| -------------- | --- |
194
-
195
-
```
116
+
[REFARCH-73 - Provision SuperAdmin User for Root Level IAM Management](/layers/accounts/prepare-aws-organization/#create-the-superadmin-iam-user)
0 commit comments