rapid-raincoat-3649201/31/2022, 9:41 PM
bored-oyster-314701/31/2022, 9:54 PM
call where the resources are declared.
rapid-raincoat-3649201/31/2022, 10:04 PM
type if I'm understanding it correctly. Wouldn't that have the same effect?
bored-oyster-314701/31/2022, 10:42 PM
Obviously that means if your cert's SAN count changes than you'd have to update the code, but if your preview being consistent is important to you it is an option.
var option1 = exampleCert.domainValidationOptions.apply(options => options); // declare first dns record var option2 = exampleCert.domainValidationOptions.apply(options => options); // declare second dns record
echoing-dinner-1953102/01/2022, 9:21 AM
The array and loop aren't the problem, it's the unknown size that's tricky. In fact we could probably write a helper to do this for you, given an Output<T> and an expected size return an Output<T> of that size and throw an error if at update time the size didn't match. Raise a github issue if that sounds worthwhile.
var options = new Option; for i in 0 to 4 do: options[i] = exampleCert.domainValidationOptions.apply(options => options[i]);