https://pulumi.com logo
Title
f

fresh-belgium-62625

04/06/2023, 5:22 PM
Hello , I have a few questions if you can help answer: 1. What is the difference between using keyId: pulumi.Output<string> and keyId: string for a ComponentResource? We assume keyId is a variable output of a pulumi component (ComponentResource). 2. Can you change the name of of the output similar to how AWS Cloudformation is able to do in their Outputs, like using Export: Name: ? That way we can use something like "key-id" instead of using keyId as in question 1. Thanks in advance!! @stocky-restaurant-98004
s

stocky-restaurant-98004

04/06/2023, 5:56 PM
1. Your component outputs should be
pulumi.Output<T>
. 2. You can name a stack export whatever you want. In TS you'd do this like
export const key-id = component.keyId
. Let me know if that fully answers your question.