You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 26, 2020. It is now read-only.
$ terraform -version
Terraform v0.6.12
$ terraform plan -var mailgun_api_key=${MAILGUN_API_KEY}
There are warnings and/or errors related to your configuration. Please
fix these before continuing.
Errors:
* 1 error(s) occurred:
* module root: 1 error(s) occurred:
* aws_route53_record.main: resource count can't reference resource variable: mailgun_domain.main.receiving_records
The Hashicorp blog article "Deploying Discourse with Terraform" by @pearkes notably does not use length(), but, instead assumes mailgun will reply with 2 receiving domains and 3 sending domains. Admittedly, this approach could be due to the age of the article (Terraform 0.2 days), or it could be due to this limitation with interpolation against a list of maps.
Test against latest release
Search for possible duplicate reports
Include steps to reproduce
The text was updated successfully, but these errors were encountered:
This issue was originally opened by @steve-jansen as hashicorp/terraform#5367. It was migrated here as part of the provider split. The original body of the issue is below.
Possibly related to hashicorp/terraform#2157.
The
maingun_domain
receiving_records and sending_records TypeLists cannot be used with interpolation functions likelength()
.Steps to reproduce:
Results in a plan error:
The Hashicorp blog article "Deploying Discourse with Terraform" by @pearkes notably does not use
length()
, but, instead assumes mailgun will reply with 2 receiving domains and 3 sending domains. Admittedly, this approach could be due to the age of the article (Terraform 0.2 days), or it could be due to this limitation with interpolation against a list of maps.The text was updated successfully, but these errors were encountered: