Create Users in AWS and Generate AK/SK¶
I. Go to the console and choose IAM.
II. Enter Access management > Users, click Add users。
i. Enter Step 1 > Specify user details to start creating a user:
ii. Enter your User name in User details.
iii. In Step 2 > Set permissions > Permissions options, select Attach policies directly and the click Create policy:
(i). In Edit policy > Modify permissions > Policy editor, input the following cntent:
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "Statement1",
"Effect": "Allow",
"Action": [
"s3:PutObject",
"s3:GetObject",
"s3:CreateBucket",
"s3:ListAllMyBuckets",
"s3:ListBucket"
],
"Resource": "arn:aws-cn:s3:::*"
}
]
}
(ii). In Review and create > Policy details > Policy name, enter a meaningful name to identify this policy:
iv. Back to Create users page and click and then the Permission that has been created in the previous step appears. Select it:
v. The user has been successfully created:
III. Create AK/SK: enter Access management > Users and click Security credentials. Slide the interface and select Create access key。
i. Choose Local code:
ii. Then AK/SK would be generated:
This is the only time that the secret acess key can be viewed or downloaded. You cannot recover it later. However, you can create a new access key any time.