AWS secrets when applying Kubernetes Resources #14901
-
We are using Applying Kubernetes Resources in order to deploy our storefront application. We would like to pass through secrets from AWS Secret Manager to k8s POD, e.g.
After deployment container gets the following environment var: CDK Version: 1.105.0 thanks for your help |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
It is expected, per https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/dynamic-references.html. Interactions with kubectl are done through custom resources and:
I would suggest something like https://github.com/external-secrets/kubernetes-external-secrets for getting the secrets into the cluster and then doing this. In your example you're attempting to put the secret as plaintext in the env, which is probably not a good idea. |
Beta Was this translation helpful? Give feedback.
It is expected, per https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/dynamic-references.html. Interactions with kubectl are done through custom resources and:
I would suggest something like https://github.com/external-secrets/kubernetes-external-secrets for getting the secrets into the cluster and then doing this. In your example you're attempting to put the secret as plaintext in the env, which is probably not a good idea.