- Go to "Permission Policies", click "Create Custom Policy";

- Enter the policy name, then input the policy in the JSON editor and submit;
{
"Statement": [
{
"Effect": "Allow",
"Action": [
"tos:ListBuckets",
"tos:ListBucket",
"tos:DeleteObject",
"tos:PutObject",
"tos:PutBucket",
"tos:GetObject"
],
"Resource": [
"trn:tos:::*",
"trn:tos:::*/*"
]
}
]
}

- Go to User Management > Users > Create User, enter the username and enable programmatic access;

- Add the policy created in the previous steps and complete the role creation;

- Obtain the Access Key and Secret Key.
