microscopic-zoo-3564
05/16/2021, 10:07 PMconst secret = pulumi.output(
aws.secretsmanager.getSecret(
{
name: stackReferenceToSecretName,
},
{ async: true }
)
)
I keep running into a typescript error Type 'string | Output<any>' is not assignable to type 'string | undefined'
little-cartoon-10569
05/16/2021, 10:10 PMmicroscopic-zoo-3564
05/16/2021, 10:13 PMlittle-cartoon-10569
05/16/2021, 10:17 PMmicroscopic-zoo-3564
05/16/2021, 10:23 PMconst coreStackRef = new pulumi.StackReference(
`name/project/${pulumi.getStack()}`
)
const hasuraCredentialsSecretName = coreStackRef.getOutput(
"hasuraCredentialsSecretKeyName"
)
const hasuraCredentialsSecret = pulumi.output(
aws.secretsmanager.getSecret(
{
name: hasuraCredentialsSecretName,
},
{ async: true }
)
)
little-cartoon-10569
05/16/2021, 10:23 PMconst secretInfo: pulumi.Output<GetSecretResult> = stackReferenceToSecretName.apply((secretName) => aws.secretsmanager.getSecret({ name: secretName });
microscopic-zoo-3564
05/16/2021, 10:37 PM