Error using lookup
Closed this issue · 3 comments
philwinder commented
Hi there, A lookup is failing for me. See below. Thanks, Phil.
module "acm_request_certificate" {
source = "git::https://github.com/cloudposse/terraform-aws-acm-request-certificate.git?ref=0.2.0"
domain_name = "example.com"
process_domain_validation_options = "true"
ttl = "60"
subject_alternative_names = ["*.example.com", "*.foo.example.com"]
}
$ terraform version
Terraform v0.11.8
+ provider.aws v1.35.0
+ provider.local v1.1.0
+ provider.null v1.0.0
+ provider.random v2.0.0
$ terraform apply
...
* module.acm_request_certificate.aws_route53_record.default: At column 3, line 1: lookup: argument 1 should be type map, got type string in:
${lookup("null_resource.default.${count.index}","resource_record_name")}
aknysh commented
@philwinder this was broken in the lastest release 0.2.0
, we need to look into that.
can you try using the previous release https://github.com/cloudposse/terraform-aws-acm-request-certificate/tree/0.1.3, which was used in many deployments and should work for you
thanks
aknysh commented