AWS Playground - Boto3

Hi, I am new to kodekloud playgrounds, i am learning boto3 with python and tried to use aws sandbox to practice with boto3 SDK, when i wrote a simple script to list the ec2 instance. I am unable to execute. I am getting a error message like:

botocore.exceptions.ClientError: An error occurred (UnauthorizedOperation) when calling the DescribeInstances operation: You are not authorized to perform this operation. User: arn:aws:iam::906292119996:user/kk_labs_user_554711 is not authorized to perform: ec2:DescribeInstances with an explicit deny in a service control policy

does the aws playground support boto3? i used terraform and it worked fine when configured with aws cli.

works fine with us-east-1 region, thanks.

This page lists the supported regions and services:
AWS SandBox Playground | KodeKloud

1 Like