sparse-intern-71089
07/22/2021, 2:01 PMwitty-candle-66007
07/22/2021, 2:13 PMorgCertificate.domain.ValidationOptions[i].resoruceRecordName
is undefined.
So, using apply()
to reconcile the promise should fix that.
Try changing the name
property setting to the following:
name: orgCertificate.domainValidationOptions[i].resourceRecordName.apply(resourceRecordName => resourceRecordName)
More discussion of these concepts can be found here:
https://www.pulumi.com/docs/intro/concepts/inputs-outputs/#
And here:
https://www.leebriggs.co.uk/blog/2021/05/09/pulumi-apply.htmlastonishing-tiger-81216
07/22/2021, 4:23 PMname: orgCertificate.domainValidationOptions.apply(domainValidationOptions => domainValidationOptions)[i].resourceRecordName
error: Running program '/Users/mallison/workspace/gdsgroup/immersify' failed with an unhandled exception:
Error: Missing required property 'name'
at new Record (/Users/mallison/workspace/gdsgroup/immersify/node_modules/@pulumi/route53/record.ts:246:23)
Your suggestion:
name: orgCertificate.domainValidationOptions[i].resourceRecordName.apply(resourceRecordName => resourceRecordName)
error: Running program '/Users/mallison/workspace/gdsgroup/immersify' failed with an unhandled exception:
TypeError: Cannot read property 'apply' of undefined
And finally:
name: orgCertificate.domainValidationOptions.apply(domainValidationOptions => domainValidationOptions[i].resourceRecordName)
Which worked š
Thanks for your help on thiswitty-candle-66007
07/22/2021, 4:30 PM