I have a scenario where I have created an IAM user for customer's application for access of API gateway and have shared the user keys (access-code and secret-key) with them. I need to rotate the keys for them every 90 days but since the access keys for IAM user are configured in the code, I need to convey the changed access keys so that they can make the code changes/configuration changes in the application, test and deploy the application again. This adds an overhead to communicate the changes every 90 days both for me and the customer.
I want to follow key rotation without needing to change the code (codebase/configuration). How can it be achieved?
Is there a better way to provide access to customer's application?
Thanks.
Assuming that your client is using an AWS SDK to communicate with AWS, then they should:
~.aws/credentials
file to store the credentialsTip: An easy way to create the credentials file is via the AWS Command-Line Interface (CLI)
aws configure
command.Then, you could rotate credentials with these steps: