https://pulumi.com logo
Title
f

flat-appointment-12338

06/25/2021, 8:53 PM
Hi, I am trying to create a
aws.secretsmanager.Secret
and then use this secret in the
environment
for a
Container
but I am not sure how to achieve this as the
aws.ecs.Secret.valueFrom
property only accepts a string rather than an
Input
\`Output` - is there a way to resolve the ARN output from the secret I created so that I may pass it into
valueFrom
?
b

bored-oyster-3147

06/25/2021, 8:58 PM
I write my entire container definition JSON in an
.apply(..)
call so that I can write the ARNs into the container definition JSON.
f

flat-appointment-12338

06/25/2021, 9:00 PM
oh thats interesting.. thanks for the tip
i just found this issue also https://github.com/pulumi/pulumi-aws/issues/1150 which seems to indicate that passing the
.arn
in will work, though the typescript definitions are wrong... testing this out right now
b

bored-oyster-3147

06/25/2021, 9:03 PM
Oh you're using
awsx
. I've encountered issues like that in crosswalk a lot, such as when it frequently required entire resources to be passed in rather than inputs. We transitioned to not using crosswalk at all