I have multiple secrets in AWS Secrets Manager and I would like them to all end up in the same file when mounted in the Kubernetes container. How do I specify the manifest file to do that?
My manifest file looks like the below. I end up with two secrets files called /mnt/credentials-a.json
and /mnt/credentials-b.json
. How do I combine them both into one file called /mnt/credentials.json
?
apiVersion: secrets-store.csi.x-k8s.io/v1alpha1
kind: SecretProviderClass
metadata:
name: test-secrets
spec:
provider: aws
parameters:
objects: |
- objectName: "arn:aws:secretsmanager:us-west-2:111122223333:secret:test1-TYabcD"
objectAlias: credentials-a.json
- objectName: "arn:aws:secretsmanager:us-west-2:111122223333:secret:test2-AfabcY"
objectAlias: credentials-b.json