Skip to content

Commit 6150974

Browse files
authored
#1285 Document SecretsManager cross-account access. (#1302)
1 parent 6acef01 commit 6150974

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

docs/src/main/asciidoc/secrets-manager.adoc

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,13 @@ To load multiple secrets, separate their names with `;`:
4040
spring.config.import=aws-secretsmanager:/secrets/database-secrets;/secrets/webclient-secrets
4141
----
4242

43+
If you have the requirement to load secrets from another AWS account you can achieve this using the secret's ARN.
44+
45+
[source,properties]
46+
----
47+
spring.config.import=aws-secretsmanager:arn:aws:secretsmanager:eu-central-1:0123456789:secret:secrets/database-secrets
48+
----
49+
4350
If some secrets are required, and other ones are optional, list them as separate entries in `spring.config.import` property:
4451

4552
[source,properties]

0 commit comments

Comments
 (0)