I already have a secret created by cloudformation template with the following key/value format: And i’ve created a rotation lambda, but when i rotate the secret i get only plain text format without key/value pair as the following error: The secret value can’t be converted to key name and value pairs. here’s my lambda code: Answer You will need to