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
asked 6 months ago332 views
1 Answer
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
EXPERT
answered 6 months ago
profile pictureAWS
EXPERT
reviewed 6 months ago
  • 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

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions