An error occurred(LimitExceededException) when calling the AdminCreateUser operation using Python boto3

0

I'm using Python Boto3 to create Cognito User accounts. There are around 9000 User accounts received in a csv file and it will be fetched by an Airflow job to create the Cognito accounts.

The workflow will be like this,

  1. The admin_create_user method will be called for each user 1.1 If the user account is already present, then UsernameExistsException is raised. In this case only the user attributes needs to be updated. For updating user attributes I'm using admin_update_user_attributes method 1.2 If a new user, then an account will be created

The admin_create_user works as expected for first few entries(up to 50 users), then I'm receiving below error

An error occurred (LimitExceededException) when calling the AdminCreateUser operation: Exceeded daily email limit for the operation or the account. If a higher limit is required, please configure your user pool to use your own Amazon SES configuration for sending email.

Using admin account, I checked further the Amazon SES config and found that my AWS account is production account with 50000 emails per day and 14 emails per second.

Though having 50000 email limit per day, why I'm still receiving the exception while creating the user account.

Attached the SES Dashboard screenshot from my AWS accountSES Dashboard

Naveen
posta 6 mesi fa356 visualizzazioni
1 Risposta
0

Hello.

Isn't Amazon SES a sandbox?
https://docs.aws.amazon.com/ses/latest/dg/manage-sending-quotas.html

If you use a sandbox, you can only send up to 200 emails in 24 hours unless you apply to AWS.
https://docs.aws.amazon.com/ses/latest/dg/quotas.html

profile picture
ESPERTO
con risposta 6 mesi fa
profile pictureAWS
ESPERTO
verificato 6 mesi fa
  • Agreed, if Sandbox, you have to apply to a different plan in order to raise the limit.

  • Mine is not a sandbox account. Updated the original question with the SES dashboard screenshot

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande