Hi all, I’m wondering about a best practice for managing keys and IDs generated by AWS and used in my mobile app, and how the app can use these values.
Here’s the scenario: my mobile app uses Cognito for authentication to AppSync. It needs the user pool ID, a client ID, and an Identity pool ID. For unauthenticated requests to AppSync, I use an API key.
However, if I ever have to regenerate my production stacks, all of those keys will change and the mobile app will break because they are currently stored in a file in the mobile app.
How can I prevent this brittleness? I think it’d be nice to have an API endpoint that the client app calls upon opening to download those values. Should those values be stored in a Secrets Manager, read by a lambda, and sent to the client?
If you’ve got any ideas, I’d really appreciate it! Thanks!