Skip to content

AWS secrets when applying Kubernetes Resources #14901

Answered by MarkMcCulloh
prosto asked this question in Q&A
Discussion options

You must be logged in to vote

It is expected, per https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/dynamic-references.html. Interactions with kubectl are done through custom resources and:

Dynamic references for secure values, such as ssm-secure and secretsmanager, aren't currently supported in custom resources.

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.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by peterwoodworth
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants