J'essaie d'écrire un petit script qui récupère les détails de mes utilisateurs à partir du pool d'utilisateurs aws cognito. Bien que mon SDK boto3 a accès à mon S3, DynamoDB etc », lors d'une tentative:Comment autoriser l'accès à CognitoIdentityProvider sdk dans aws boto3
import boto3
client = boto3.client('cognito-idp')
response = client.admin_get_user(
UserPoolId='XXXXXX',
Username='YYYYYY'
)
-je obtenir
botocore.exceptions.ClientError: An error occurred (AccessDeniedException) when calling the AdminGetUser operation
Mais je ne peux pas trouver dans la documentation comment permettre cet accès à mon SDK.
Des suggestions?