Thread
#typescript
    b

    busy-journalist-6936

    5 months ago
    Typescript Noob question alert 🚨 lol I'm making little progress on self teaching the practical difference between type
    Output<string>
    and
    string
    . In this case, I want to do:
    const name: string = pulumi.concat(["kc2-", stack]);
    But obviously that does not work due to error:
    Type 'Output<string>' is not assignable to type 'string'.
    How do I remediate this?
    l

    little-cartoon-10569

    5 months ago
    In this case, since
    name
    is used as an input to another Pulumi resource, the fix is as simple as
    const name: pulumi.Output<string> = pulumi.concat(["kc2-", stack]);