Unable to create aws_access_key_id and aws_secret_access_key on playground

I want to create aws infrastructure using python. For that I need aws_access_key_id and aws_secret_access_key. However when I am trying to create or list it, I am getting below error.

[cloudshell-user@ip-10-12-116-139 ~]$ aws iam create-user --user-name my_user
{
“User”: {
“Path”: “/”,
“UserName”: “my_user”,
“UserId”: “AIDAUWU3TYKNFYVUFGGRO”,
“Arn”: “arn:aws:iam::323522642586:user/my_user”,
“CreateDate”: “2023-01-27T10:41:13+00:00”
}
}
[cloudshell-user@ip-10-12-116-139 ~]$ aws iam create-access-key --user-name my_user

An error occurred (AccessDenied) when calling the CreateAccessKey operation: User: arn:aws:iam::323522642586:user/odl_user_848806 is not authorized to perform: iam:CreateAccessKey on resource: user my_user with an explicit deny in a service control policy
[cloudshell-user@ip-10-12-116-139 ~]$ aws iam list-access-keys --user-name my_user

An error occurred (AccessDenied) when calling the ListAccessKeys operation: User: arn:aws:iam::323522642586:user/odl_user_848806 is not authorized to perform: iam:ListAccessKeys on resource: user my_user with an explicit deny in an identity-based policy
[cloudshell-user@ip-10-12-116-139 ~]$

Hi,
aws_access_key is not yet available on playground. The labs team work on it, and you’ll receive notification on Slack channel when available.

Regard

cannot create access keys for iam user

You need to add the keys to the existing IAM user.