You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I do not understand which commands are described and how to use them.
Particularly, I want to fetch value from aws secret manager: aws secretsmanager get-secret-value --secret-id ${PROJECT_NAME}/path --region ${AWS_REGION}. Is next possible?
job{ group { task {
template {
data = <<-EOH
{{- with exec "aws secretmanager ..." -}}
PGPASSWORD="{{ .Data.password }}"
PGUSER="{{ .Data.user }}"
PGDATABASE="{{ .Data.db }}"
{{ end }}
EOH
destination = "secrets/file.env"
env = true
}}}
The text was updated successfully, but these errors were encountered:
Hi @EugenKon, you might want to take a look at the plugin function. This would allow you to write a script that executes the aws secretmanager command and allows the output to be used within consul-template.
https://github.com/hashicorp/consul-template#commands
I do not understand which commands are described and how to use them.
Particularly, I want to fetch value from aws secret manager:
aws secretsmanager get-secret-value --secret-id ${PROJECT_NAME}/path --region ${AWS_REGION}
. Is next possible?The text was updated successfully, but these errors were encountered: