https://pulumi.com logo
#general
Title
# general
h

high-morning-18773

11/04/2019, 11:06 PM
ACM cert validation request does not get created. Can some one please take a look. i get error
Copy code
AttributeError: 'dict' object has no attribute 'resourceRecordName'
Here is the code
Copy code
useast1 = aws.Provider("useast1", region="us-east-1")

zone = aws.route53.get_zone(
    name="<http://testabc.com|testabc.com>",
    private_zone=False
)

appcert = aws.acm.Certificate(
    "snorkel-dev-cert",
    domain_name="<http://testabc.com|testabc.com>",
    validation_method="DNS",
    __opts__=pulumi.ResourceOptions(provider=useast1)
)

certvalidaton_dns = aws.route53.Record(
    "cert-validation-reocord",
    name=appcert.domain_validation_options[0].resourceRecordName,
    records=appcert.domain_validation_options[0].resourceRecordValue,
    type=appcert.domain_validation_options[0].resourceRecordType,
    zone_id=zone.zone_id
)

appcert_validation = aws.acm.CertificateValidation(
    "app-cert-validation",
    certificate_arn=appcert.arn,
    validation_record_fqdns=certvalidaton_dns.fqdn
)
w

white-balloon-205

11/04/2019, 11:30 PM
I suspect those need to be
name=appcert.domain_validation_options[0]["resourceRecordName"],
(and similar for the other inputs to the resource).
h

high-morning-18773

11/05/2019, 12:34 AM
Thanks that worked
3 Views