sparse-intern-71089
11/01/2023, 2:07 AMtall-librarian-49374
11/01/2023, 8:14 AMpulumi.interpolate`https://${containerAppName}.${managedEnvironment.defaultDomain}`
colossal-room-15708
11/14/2023, 7:21 AMcolossal-room-15708
11/14/2023, 7:23 AM...
export function scanApp(resourceGroupName: Output<string>,...): {
...
new appservice.Plan(appServicePlanName, {
resourceGroupName: resourceGroupName,
}
That doesn't work.
I already tried `pulumi.interpolate`${resourceGroupName}`` but that just throws the same error.tall-librarian-49374
11/14/2023, 1:57 PMtoString
on an output somewhere but it's hard to diagnose without the full code. Your snippet looks perfectly fine.colossal-room-15708
11/14/2023, 9:34 PMconst appName = pulumi.interpolate`argos-${resourceGroupName}`;
const prefix = `${appName}-${stack}`;
I then use prefix
as a property for another resource as well. Does that not work?colossal-room-15708
11/15/2023, 1:33 AMtall-librarian-49374
11/15/2023, 5:50 PMconst prefix = `${appName}-${stack}`;This is your problem. It has to be an interpolate again.
tall-librarian-49374
11/15/2023, 5:51 PMnew Resource(prefix + "foo", ...
colossal-room-15708
11/15/2023, 9:24 PM