sparse-intern-71089
05/30/2023, 12:28 PMechoing-dinner-19531
05/30/2023, 12:29 PMbig-psychiatrist-43588
05/30/2023, 12:34 PMconst iapProtectedEmailId = iamStack.getOutput("iapProtectedAdditionalEmail")
const emailIDD = iapProtectedEmailId.apply(x => `${iapProtectedEmailId}`);
additionalIapMembers.push(emailIDD) ;
additionalIapMembers is an string array and it does not allow emailIDDbig-psychiatrist-43588
05/30/2023, 12:34 PMArgument of type 'Output<string>' is not assignable to parameter of type 'string'
echoing-dinner-19531
05/30/2023, 12:48 PMconst emailIDD = iapProtectedEmailId.apply(x => `${iapProtectedEmailId}`);
That looks wrong. "apply" must always return an output, you can't use an apply call to remove the outputness of a value.
If iamStack is a stack reference you can probably use getOutputDetails instead here to make it easier to work with.rapid-belgium-4304
05/30/2023, 4:17 PMexport const vpc = async (): Promise<aws.ec2.Vpc> =>
new Promise(resolve => account.getOutput('vpc').apply(v => resolve(v)))
Then used like:
{
vpcId: (await vpc()).id,
}