https://pulumi.com logo
#getting-started
Title
# getting-started
e

elegant-gigabyte-8733

07/05/2023, 8:45 PM
I’m using
aws.ssm.getParameter
to get an SSM parameter that is a private key and that has some line breaks in the string
\n
however it looks like retrieving this way adds an extra slash
\
so all the line breaks turn into
\\n
making it an invalid private key. Code looks like this:
Copy code
pulumi.output(aws.ssm.getParameter({name: '/my/param'}, {async: true})).value
Ended up having to use trim and that worked