I am working on automation to rotate access keys for AWS we use inside various workflows that interact with the cloud. We currently store out Access Keys/Secret Keys in LOGIN objects on the system and would like to write a workflow that creates a new access key for the service account and then automatically updates the LOGIN object with the new access key before disabling the old access key.
I obviously utilize the GET_LOGIN function to pull usernames and passwords for me custom login type of AWS. But am not finding anywhere a function that would allow you to set new username/password for a target Name/Type inside the LOGIN object.
Is this possible?
I would check out the script function: MODIFY_OBJECT
Looks like the parameter ADD can be used to update the password if the entry already exists.
If you're comfortable using the Java APIs, you could also use LoginDefinition.setPassword().
I guess using the Java API, as mentioned by Michael, is the only way to do the in an automated way.