Dan Van Brunt
12/13/2021, 1:49 PMstack.resolve()
? It seems like more of an escape hatch that makes things less extensible as a construct author. No?Frank
const api = new sst.Api(...);
console.log(api.url);
console.log(this.resolve(api.url));
On build, it printed out:
${Token[TOKEN.271]}
{ 'Fn::GetAtt': [ 'ApiCD79AAA0', 'ApiEndpoint' ] }
resolve()
seems to convert a CDK token into CFN instrinsic functions. I don’t think you can pass the latter around as input to other constructs.Frank
resolve()
a token, it can’t be used in the CDK app anymore.Dan Van Brunt
12/13/2021, 10:32 PMFrank