boto3 client Unable to locate credentials

Mahabubur Rahman
0

 botocore.exceptions.NoCredentialsError: Unable to locate credentials


This exception occurred when you try boto3 client API without credentials as bellow - 

client = boto3.client('ce',region_name='ap-southeast-1')

So you need to try boto3 client API with right crediantials as bellow - 


client = boto3.client('ce', region_name='ap-southeast-1',
aws_access_key_id='YOUR_KEY_ID',
aws_secret_access_key='YOUR_ACCESS_KEY')







Tags

Post a Comment

0Comments
Post a Comment (0)