cuddly-smartphone-15267
12/02/2020, 6:48 AMvar cert = new Certificate("cert", new CertificateArgs
{
DomainName = domainName,
Tags =
{
{"Environment", "test"},
},
ValidationMethod = "DNS"
});
then i try to create a dns record:
var validationRecord = new Record($"validationRecord",
new RecordArgs
{
AllowOverwrite = true,
Name = cert.DomainValidationOptions.Apply(x => x[0].ResourceRecordName),
Records = new[] {cert.DomainValidationOptions.Apply(x => x[0].ResourceRecordValue)},
Type = cert.DomainValidationOptions.Apply(x => x[0].ResourceRecordType),
Ttl = 60,
ZoneId = zone.Apply(z => z.ZoneId),
})
however it seems like it's not actually passing the domain validation option values into the Record object. I'm getting this error:
Diagnostics:
aws:route53:Record (validationRecord):
error: aws:route53/record:Record resource 'validationRecord' has a problem: Required attribute is not set
error: aws:route53/record:Record resource 'validationRecord' has a problem: Required attribute is not set
am i doing something obviously stupid?gentle-diamond-70147
12/02/2020, 3:21 PMcuddly-smartphone-15267
12/03/2020, 11:40 AM