Skip to content

Commit

Permalink
#1285 Document SecretsManager cross-account access. (#1302)
Browse files Browse the repository at this point in the history
  • Loading branch information
mmaeller authored Dec 18, 2024
1 parent 6acef01 commit 6150974
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions docs/src/main/asciidoc/secrets-manager.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit 6150974

Please sign in to comment.