aws_secretsmanager()
function fails to fetch JSON secrets
#13112
Labels
aws_secretsmanager()
function fails to fetch JSON secrets
#13112
Community Note
Overview of the Issue
I am trying to fetch a JSON secret stored in the AWS SecretsManager. I have found out, that the
aws_secretsmanager()
function is able to get either text secrets, or JSON secrets in key:value format - only by individual keys.However, I need to fetch JSONs, that cannot be converted to key:value format and I need to fetch them "as is". Would it be possible to include something like
raw=false/true
flag, that would not attempt to convert JSONs into key:value format?Additionally, it would be great if
aws_secretsmanager()
printed, which secret failed. Currently, it prints only the line of code, which can be problematic, when one is iterating over multiple secrets within a dynamic block with let's say file priovisioner.Thank you for considering this issue.
Reproduction Steps
packer validate .
Packer version
From
packer v1.11.0
(Ubuntu 20.04 LTS),packer v1.11.1
(MacOS 14.5 Sonoma)Simplified Packer Template
Operating system and Environment details
Ubuntu 20.04 LTS, MacOS 14.5 Sonoma
Log Fragments and crash.log files
The text was updated successfully, but these errors were encountered: