How to use Infisical API to sync secrets to external secret managers
The Infisical API allows you to create programmatic integrations that connect with third-party secret managers to synchronize secrets from Infisical.This guide will primarily demonstrate the process using AWS Secret Store Manager (AWS SSM), but the steps are generally applicable to other secret management integrations.
curl --request POST \ --url https://app.infisical.com/api/v1/integration-auth/access-token \ --header 'Authorization: <authorization>' \ --header 'Content-Type: application/json' \ --data '{ "workspaceId": "<workspaceid>", "integration": "aws-secret-manager", "accessId": "<aws iam user access id>", "accessToken": "<aws iam user access secret key>"}'
2
Configure the Synchronization Setup
Once authentication between AWS SSM and Infisical is established, you can configure the synchronization behavior.
This involves specifying the source (environment and secret path in Infisical) and the destination in SSM to which the secrets will be synchronized.Use the integration API with the following parameters to configure the sync source and destination.
Congratulations! You have successfully set up an integration to synchronize secrets from Infisical with AWS SSM.
For more information, view the integration API reference.