colossal-room-15708
11/01/2023, 2:07 AMCalling [toString] on an [Output<T>] is not supported
error.
I need to create the following string:
`https://${containerAppName}.${pulumi.interpolate`${managedEnvironment.defaultDomain}`}`
managedEnvironment is of type ManagedEnvironment
from the azure-native provider and for the life of me I can't get the defaultDomain
property into this string.
I tried managedEnvironment.defaultDomain.apply(d => d)
as well, no luck.
Am I out of luck with this one?tall-librarian-49374
11/01/2023, 8:14 AMpulumi.interpolate`https://${containerAppName}.${managedEnvironment.defaultDomain}`
colossal-room-15708
11/14/2023, 7:21 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?tall-librarian-49374
11/15/2023, 5:50 PMconst prefix = `${appName}-${stack}`;This is your problem. It has to be an interpolate again.
new Resource(prefix + "foo", ...
colossal-room-15708
11/15/2023, 9:24 PM