- Newest
- Most votes
- Most comments
The issue you're experiencing with cross-account sharing of a Sender ID for Amazon Cognito SMS messages is complex and involves several AWS services. Here's an analysis of the situation and some potential solutions:
-
Sender ID Support: First, ensure that the recipient's country (Australia in this case) supports Sender IDs. Australia does support Sender IDs, so this shouldn't be the issue.
-
Resource Sharing: Your approach of using AWS Resource Access Manager (RAM) to share the Sender ID between accounts is correct. However, the problem may lie in how Cognito is attempting to use this shared resource.
-
Cognito SMS Configuration: Amazon Cognito uses Amazon SNS for sending SMS messages. When configuring Cognito for SMS, you need to ensure that it's set up to use the shared Sender ID. This configuration isn't automatically inherited from the shared resource.
-
IAM Permissions: While you've added permissions to the Cognito SMS IAM Role in Account B, Cognito might not be using these permissions directly when sending SMS. Instead, it relies on its integration with SNS.
-
SNS Configuration: Since Cognito uses SNS, you may need to configure SNS in Account B to use the shared Sender ID. This could involve setting up an SNS topic or adjusting SNS settings to recognize and use the shared Sender ID.
-
Cross-Account Resource Use: Using resources across accounts can be tricky, especially with services like Cognito that integrate with other AWS services (in this case, SNS).
To resolve this issue, try the following steps:
-
In Account B, configure SNS to use the shared Sender ID as the default Sender ID for SMS messages.
-
Update the Cognito user pool in Account B to explicitly specify the Sender ID in its SMS configuration.
-
Ensure that the IAM role used by Cognito in Account B has permissions not just for the Sender ID, but also for SNS operations.
-
Double-check that the resource policy on the Sender ID in Account A allows both Cognito and SNS from Account B to use it.
-
If possible, test sending an SMS directly through SNS in Account B using the shared Sender ID to isolate whether the issue is with Cognito or with the cross-account sharing setup.
If these steps don't resolve the issue, you may need to contact AWS Support for further assistance, as there could be account-specific configurations or limitations that are not publicly documented.
Sources
Issue with Approved Sender ID Not Appearing in SMS Messages via Amazon SNS | AWS re:Post
SMS message settings for Amazon Cognito user pools - Amazon Cognito
Sender IDs in AWS End User Messaging SMS - AWS End User Messaging SMS
- In Account B, configure SNS to use the shared Sender ID as the default Sender ID for SMS messages. It is the default Sender ID in Account B
- Update the Cognito user pool in Account B to explicitly specify the Sender ID in its SMS configuration. I can't find that option.
- Ensure that the IAM role used by Cognito in Account B has permissions not just for the Sender ID, but also for SNS operations. It has and it can send SMS, but not using my Sender ID
- Double-check that the resource policy on the Sender ID in Account A allows both Cognito and SNS from Account B to use it. I send SMS from Cognito's console and it still UNVERIFIED.
- If possible, test sending an SMS directly through SNS in Account B using the shared Sender ID to isolate whether the issue is with Cognito or with the cross-account sharing setup. I did. still UNVERIFIED.
answered 2 years ago
Relevant content
asked 4 years ago
asked a year ago
