sparse-intern-71089
01/20/2021, 6:51 PMbillowy-army-68599
containerDefinitions
is a standard ts string, but the value of ecr.repositoryUrl
is an unresolved promise. You need to build your JSON.stringify
string inside the apply itself, so try this
const containerDefinitions = ecr.repositoryUrl.apply(url => JSON.stringify(
[
{
name: this.FormattedName,
image: pulumi.interpolate`${url}:${imageVersion}`,
portMappings: portMappings,
environment: environmentVariables
}
])
rough-optician-63632
01/20/2021, 7:07 PM