sparse-intern-71089
08/29/2019, 6:12 PMwhite-balloon-205
limited-rainbow-51650
08/29/2019, 8:18 PMlet certificateArn: pulumi.Input<string> = config.certificateArn!;
https://github.com/pulumi/examples/blob/1983bd4292265f9628e858b6105b61aaa02bfe4e/aws-ts-static-website/index.ts#L81
I am executing this example without passing a certificateArn config value, but still the certificate is not created.white-balloon-205
Can someone explain me how the exclamation mark worksIt just tells TypeScript to change the type from
T | undefined
to T
- it doesn't actually "do" anything.
I am executing this example without passing a certificateArn config value, but still the certificate is not created.Hmm - from the code I cannot imagine how that could happen. I just tried locally and when I do not pass in any config for this, the example correctly creates a new certificate for me.
limited-rainbow-51650
08/29/2019, 8:51 PM