Skip to content

Commit a23c815

Browse files
committed
feat(awssecrets): add doc
1 parent ecd779c commit a23c815

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed

docs/backends.md

+16-2
Original file line numberDiff line numberDiff line change
@@ -321,10 +321,24 @@ stringData:
321321
type: Opaque
322322
```
323323

324+
###### Retrieving of binary data
325+
326+
Since there is no way to set a key for binary type in AWS Secret Manager, set the `<key>` part to `SecretBinary` to retrieve binary data:
327+
328+
```yaml
329+
apiVersion: v1
330+
kind: Secret
331+
metadata:
332+
name: aws-example
333+
stringData:
334+
sample-secret: <path:arn:aws:secretsmanager:<REGION>:<ACCOUNT_NUMBER>:<SECRET_ID>#SecretBinary>
335+
type: Opaque
336+
```
337+
324338
**NOTE**
325339
For cross account access there is the need to configure the correct permissions between accounts, please check:
326-
https://aws.amazon.com/premiumsupport/knowledge-center/secrets-manager-share-between-accounts
327-
https://docs.aws.amazon.com/secretsmanager/latest/userguide/auth-and-access_examples_cross.html
340+
https://aws.amazon.com/premiumsupport/knowledge-center/secrets-manager-share-between-accounts
341+
https://docs.aws.amazon.com/secretsmanager/latest/userguide/auth-and-access_examples_cross.html
328342

329343
### GCP Secret Manager
330344

0 commit comments

Comments
 (0)