limited-rainbow-5165008/29/2019, 6:12 PM
limited-rainbow-5165008/29/2019, 8:18 PM
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.
let certificateArn: pulumi.Input<string> = config.certificateArn!;
Can someone explain me how the exclamation mark worksIt just tells TypeScript to change the type from
T | undefined
- 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-5165008/29/2019, 8:51 PM