DEV Community

Discussion on: IAM Credentials Rotation Automation with Step Functions

Collapse
 
megaproaktiv profile image
Gernot Glawe

Great stepfunction usecase! As I had this problem to tackle before: how do the users/apps access their new keys if they cannot access with the old key? We had added a deletion delay for that.

Collapse
 
nthienan profile image
An Nguyen

I have a same question. And how do applications notice that keys were rotated?

Collapse
 
zachjonesnoel profile image
Jones Zachariah Noel

@megaproaktiv and @nthienan yep good question, in this example I'm making an assumption that the credentials would be pulled in always from Secrets Manager not from external sources like GitHub secrets or anything such. So whenever the IAM credentials are updated the application only refers to the key defined in Secrets Manager and it gets the latest credentials.

That's why added a SES step in the end to notify admins whenever it is changed. You could have a Lambda fn or SNS which can notify or update external systems that IAM creds are updated.

Does that answer your question?