Generate credentials and invoke Lambda on schedule

Recipe ToolsDeveloper ToolProductivity

What it does

When a specified interval occurs, this automation generates a random password and invokes a function in Lambda. The automation sends an email from Outlook with the result.

Who it's for

Engineering teams who need to run scheduled Lambda functions and notify stakeholders of the outcome.

How teams use this

Run scheduled maintenance on Lambda

Invoke a Lambda function every night at a set time to perform database cleanup or other maintenance tasks. The automation generates credentials and emails the team when the job finishes.

Rotate credentials on a schedule

Generate a new random password at a specified interval and pass it to Lambda to update stored credentials. Outlook sends confirmation to the security team that rotation completed.

Add multiple Lambda invocations per cycle

Include additional Lambda functions in the same automation by adding more invoke steps after the password is generated. Only the number of Lambda calls changes, not the schedule or email notification.

How it works

  1. Start at the scheduled time. At the specified interval, Clock triggers this automation to begin generating credentials and invoking the Lambda function.
  2. Generate a random password. Execute ruby code to create a random 8 character string and store it as a variable for use in the Lambda function call.
  3. Invoke the Lambda function. Call the Lambda function with the generated password variable so the function runs with the required input data.
  4. Send email with the result. Send an email from Outlook Mail to notify someone that the Lambda function has been invoked and the job is complete.