Amplify: How to move from sandbox to production?

0

We are using Amplify as backend for one of our projects and we use Cognito User pool for managing users. Our users signup with their mobile number and get verified with an OTP sent via SMS. We tested sending SMS in Sandbox env and then requested to move from sandbox to prod env. Our request is approved and we moved from sandbox to production env. However, in Amplify studio for authentication it still shows SNS Mode as Sandbox. Why is it still showing SNS mode as sandbox even after moving to production? Does Amplify require any additional steps? If so, what steps are required to move our Amplify auth env to production?

Please Note: My SNS console clearly showing: This account has production access. And our Amplify backend is also running in the same region.

Appreciate any help/pointers to resolve this quickly as this is blocking our production release.

Thanks.

1 Answer
3

Considering below before reach out to AWS support:

  1. Verify Amplify Configuration • Double-check the configuration in your Amplify backend. Ensure that the correct AWS Region is selected and matches the region where your SNS account has production access. • Confirm that the Cognito User Pool is correctly linked to the Amplify project and is using the updated SNS settings.

  2. Update Amplify Backend • Run the following command in your Amplify CLI to ensure the backend is updated:

amplify push

This will push any pending changes to the cloud and might resolve discrepancies between the Amplify Studio and the actual backend configuration.

  1. Check Cognito SMS Configuration • In the Cognito User Pool settings, navigate to the Message Customizations section and verify that the SMS configuration is set to use the production SNS settings. • Ensure that the IAM role associated with Cognito has the necessary permissions to send SMS messages via SNS in production.

  2. Reinitialize Amplify Studio • Sometimes, Amplify Studio may not immediately reflect changes. Try reinitializing the Amplify Studio environment: o Log out and log back in. o Clear your browser cache or try accessing Amplify Studio in an incognito window.

  3. Debugging with Logs • Use CloudWatch Logs to monitor SNS and Cognito activity. This can help identify if there are any errors or misconfigurations when sending SMS.

EXPERT
answered 2 months ago

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