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

1回答
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
エキスパート
回答済み 6ヶ月前
profile pictureAWS
エキスパート
レビュー済み 6ヶ月前
  • 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

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ