Skip to main content

Re-Use Secrets

It's possible to map custom keys from your secret manager:

runops targets create \
--name 'demo-db' \
--type 'mysql'
--secret_provider 'aws' \
--runner_provider 'runops' \
--secret_path 'mysql-target-prod' \
--secret_mapping '{"MYSQL_HOST": "MYSQL_HOSTNAME"}'

When executing a task with this target, it will add the value of the secret key MYSQL_HOSTNAME to MYSQL_HOST, this allows a smoothly integration with existent keys in case of existent key in the secret manager.

⚠️ In case of malformed JSON configuration it will hang the execution of a task.