Automic Workload Automation

Expand all | Collapse all

Programmatically Update a LOGIN object

  • 1.  Programmatically Update a LOGIN object

    Posted 09-05-2018 03:16 PM

    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?



  • 2.  Re: Programmatically Update a LOGIN object

    Posted 09-05-2018 04:08 PM

    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.



  • 3.  Re: Programmatically Update a LOGIN object

    Posted 09-06-2018 08:11 AM

    If you're comfortable using the Java APIs, you could also use LoginDefinition.setPassword().



  • 4.  Re: Programmatically Update a LOGIN object

    Posted 09-07-2018 06:41 AM

    Hello,

     

    I guess using the Java API, as mentioned by Michael, is the only way to do the in an automated way.

     

    regards

    Thomas