I have a terraform output for acm_certificate domain_validation_options
the output is something of this type. I want to extract resource_record_value and resource_record_name
~ base_module_outputs = {
+ acm_certificate_name = [
+ {
+ domain_name = "xxxx"
+ resource_record_name = "xxxxx"
+ resource_record_type = "CNAME"
+ resource_record_value = "xxxx"
},
]
# (2 unchanged elements hidden)
}
root module outputs.tf
output "base_module_outputs" {
value = module.base
}
base module outputs.tf
output "acm_certificate_name" {
value = aws_acm_certificate.xx.domain_validation_options
}