I have been trying to use this module to host static website from S3 bucket. I'm unable to use custom ACM certificate when create_acm_certificate is set to false and acm_certificate_arn_to_use is used.
I always get the below error,
╷
│ Error: Invalid index
│
│ on main.tf line 74, in resource "aws_route53_record" "acm_certificate_validation_records":
│ 74: for dvo in aws_acm_certificate.cert[0].domain_validation_options : dvo.domain_name => {
│ ├────────────────
│ │ aws_acm_certificate.cert is empty tuple
│
│ The given key does not identify an element in this collection value: the
│ collection has no elements.
I have been trying to use this module to host static website from S3 bucket. I'm unable to use custom ACM certificate when
create_acm_certificate
is set tofalse
andacm_certificate_arn_to_use
is used.I always get the below error,
Any leads to this could be helpful.