Aman Khanna
Aman Khanna

Reputation: 383

How to setup SMS configuration in AWS Cognito?

In AWS Cognito userpool, we need to setup SMS configuration :

http://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_SmsConfigurationType.html

What are SMSCallerARN and ExternalID ? How to configure them ?

Upvotes: 4

Views: 2086

Answers (1)

Clinton Chau
Clinton Chau

Reputation: 556

This was answered in the AWS forums with one incorrect answer noted below.

Briefly, SMSCallerARN is the ARN for the IAM role that is allowed to send SMS messages (you're prompted to create this if you use the step-by-step setup in the Console).

ExternalId is the developer's account ID.Get the ExternalId by opening the SNS Role that you created for SMS, and clicking on Show Policy Document. It will be under the sts:ExternalId key.

Note that the documentation says that this is not required (and I don't really see why it would be), but when you try to execute with ExternalId unspecified or empty string through AWS CLI, you'll be told that it's required.

Upvotes: 2

Related Questions