Posted On: Nov 26, 2023

AWS Secrets Manager now supports a single API call to identify and retrieve a group of secrets for your application. The new API, BatchGetSecretValue, offers greater simplicity to common developer workflows where you need to bring multiple secrets into your application. With this feature, you no longer have to make iterative calls to retrieve one secret at a time or account for partial failures when pulling multiple secrets, enhancing the overall efficiency.

With the BatchGetSecretValue, you can input a list of secret names or ARNs, or filter criteria, such as tags. The API returns a response for all secrets meeting the criteria in the same format as the existing GetSecretValue API. This allows you to optimize your workloads while reducing the number of API calls.

The API is available in all AWS Regions where AWS Secrets Manager is available, except China (Beijing) Region and China (Ningxia) Region. To learn more about how to use BatchGetSecretValue, visit the API documentation.