How to expire Cognito App credentials

0

I have created a Cognito pool and an app. I want the ClientID and ClienrSecret to be expired in 10days from the date of creations. How do I do it?

Rohit
asked 2 months ago179 views
1 Answer
0
Accepted Answer

Hi,

According to the AWS documentation, you can't change secrets after you create an app, so you will need to create a new app with a new secret if you want to rotate the secret.

A cost effective solution could be to embed this logic into an AWS Lambda function and schedule the execution using EventBridge.

profile picture
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