Using the AWS Secrets Manager data source #2203
-
Hi, This is a great tool so thank you for making it. I'm attempting to render some templates and populate some values with secrets from AWS Secrets Manager. I'm currently unable to use v4.x due to this issue: #2190 so I'm using v3.11.8. I'm able to pull secrets just fine, even from other AWS accounts so all good there. I am however, doing so in a suboptimal way when I need to pull secrets from more than one Secrets Manager path. What I'd like to do is specify Secrets Manager (no URI) as a data source and then specify the URI in the template like so:
But this fails with an error:
This does work:
But I'd rather not have to configure a dedicated datasource for every secret I'd like to retrieve. Very likely there's something I'm failing to understand here. If anyone has any pointers on what I may be doing wrong, I'd appreciate your input. Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
I think that's just a YAML syntax error. If you surround # Configuration file (.gomplate.yaml):
datasources:
SM:
url: 'aws+sm:' |
Beta Was this translation helpful? Give feedback.
I think that's just a YAML syntax error. If you surround
aws+sm:
in quotes it'll probably work: