Reputation: 2890
We have an API Gateway configured to receive external calls to put objects to our S3 bucket. When trying to do it programmatically in Java we have to get the Access Key and Secret Access Key and attach it to the request to AWS.
Our service (Salesforce) that calls the API gateway resides externally to the AWS service and the Access Key and Secret Access Key of an IAM user we are using rotates monthly which means, in the worse case, we have to manually get these keys and copy them over to the specific location.
This does not seem to be an elegant solution, can anyone with experience provide better ways to do it?
Upvotes: 0
Views: 84
Reputation: 269540
AWS IAM allows two Access Keys to be active simultaneously. This permits a long rotation period.
For example:
This allows for a longer "transition period", without having to perform updates in both systems simultaneously.
The above AWS processes can be performed by via API calls. If the external system also permits credential updates via API, then this entire operation can be automated.
Upvotes: 1