I have a third-party application that is integrated with AWS. It uses a particular User in AWS for the integration, and I have to manually update the access key and secret key in the console of the third-party app when the User's keys are rotated.
I plan to rotate the keys more often, and I am hoping to automate the update of keys in the third-party app.
I believe that I can create a custom CloudWatch event using EventBridge to pick up on changes to the IAM user credentials and trigger a Lambda. However, what I can't figure out is how to collect the updated User access + secret keys so that I can use the third-party app's API to update them.
Is it possible to collect/feed rotated access + secrets keys programmatically within a Lambda function?