diff --git a/docs/src/main/asciidoc/secrets-manager.adoc b/docs/src/main/asciidoc/secrets-manager.adoc index d7c6cc0eb..a44478f6b 100644 --- a/docs/src/main/asciidoc/secrets-manager.adoc +++ b/docs/src/main/asciidoc/secrets-manager.adoc @@ -40,6 +40,13 @@ To load multiple secrets, separate their names with `;`: spring.config.import=aws-secretsmanager:/secrets/database-secrets;/secrets/webclient-secrets ---- +If you have the requirement to load secrets from another AWS account you can achieve this using the secret's ARN. + +[source,properties] +---- +spring.config.import=aws-secretsmanager:arn:aws:secretsmanager:eu-central-1:0123456789:secret:secrets/database-secrets +---- + If some secrets are required, and other ones are optional, list them as separate entries in `spring.config.import` property: [source,properties]