sparse-intern-71089
08/14/2019, 6:13 PMwhite-balloon-205
billowy-laptop-45963
08/14/2019, 6:15 PMconst cert = new aws.acm.Certificate("cert", {
domainName: domainName,
subjectAlternativeNames: [san1],
validationMethod: "DNS",
});
const zone = aws.route53.getZone({
name: domainName,
privateZone: false,
}).then(zone => zone.id);
const v1 = new aws.route53.Record("v1", {
name: cert.domainValidationOptions.apply(opt => opt[0].resourceRecordName),
records: [cert.domainValidationOptions.apply(opt => opt[0].resourceRecordValue)],
ttl: 60,
type: cert.domainValidationOptions.apply(opt => opt[0].resourceRecordType),
zoneId: zone,
});
const v2 = new aws.route53.Record("v2", {
name: cert.domainValidationOptions.apply(opt => opt[1].resourceRecordName),
records: [cert.domainValidationOptions.apply(opt => opt[1].resourceRecordValue)],
ttl: 60,
type: cert.domainValidationOptions.apply(opt => opt[1].resourceRecordType),
zoneId: zone,
});
const certValidation = new aws.acm.CertificateValidation("cert", {
certificateArn: cert.arn,
validationRecordFqdns: [
v1.fqdn,
v2.fqdn,
],
});
billowy-laptop-45963
08/14/2019, 6:15 PMwhite-balloon-205
billowy-laptop-45963
08/14/2019, 6:16 PMwhile :; do date ; aws --profile jonjitsu acm describe-certificate --certificate-arn arn:aws:acm:us-east-1:389211687401:certificate/057a6b0b-9967-4d1f-8294-7f3fdd7dce0a; sleep 2; done
billowy-laptop-45963
08/14/2019, 6:17 PMbillowy-laptop-45963
08/14/2019, 6:18 PMbillowy-laptop-45963
08/14/2019, 6:18 PMbillowy-laptop-45963
08/14/2019, 6:18 PMbillowy-laptop-45963
08/14/2019, 6:20 PMwhite-balloon-205
and then dies with a large exceptionWhat exception?
white-balloon-205
once the cert is issued validation is up and it disappearsWhat output do you get from
pulumi
?billowy-laptop-45963
08/14/2019, 6:23 PMTypeError: Cannot read property 'resourceRecordName' of undefined
billowy-laptop-45963
08/14/2019, 6:27 PM$ pulumi up -y
Previewing update (acmtest1):
Type Name Plan Info
pulumi:pulumi:Stack wp-cfn-stack-acmtest1
+- ├─ aws:acm:Certificate cert replace [diff: ~domainName,subjectAlter
+ ├─ aws:route53:Record v2 create
+ ├─ aws:route53:Record v1 create
+ └─ aws:acm:CertificateValidation cert create
Resources:
+ 3 to create
+-1 to replace
4 changes. 1 unchanged
Updating (acmtest1):
Type Name Status Info
pulumi:pulumi:Stack wp-cfn-stack-acmtest1
+- ├─ aws:acm:Certificate cert replaced [diff: ~domainName,subjectAlte
+ ├─ aws:route53:Record v2 created
+ ├─ aws:route53:Record v1 created
+ └─ aws:acm:CertificateValidation cert created
Outputs:
certarn: "arn:aws:acm:us-east-1:389211687401:certificate/057a6b0b-9967-4d1f-8294-7f3fdd7dce0a"
Resources:
+ 3 created
+-1 replaced
4 changes. 1 unchanged
Duration: 57s
Permalink: file:///home/jon/.pulumi/stacks/acmtest1.json
white-balloon-205
cert
there doesn't look right. What does the diff show about why domainName
is changing? That replace will lead to the cert being deleted (after a new one is created for the replacement).white-balloon-205
one of these for each usage in route53 recordThis suggests that yourTypeError: Cannot read property 'resourceRecordName' of undefined
Certificate
returned only one validation option?billowy-laptop-45963
08/14/2019, 7:00 PMwhite-balloon-205
best-xylophone-83824
08/15/2019, 9:26 AMwhite-balloon-205
pulumi/pulumi
to 12 though.