stavxyz / terraform-mailgun-aws

A Terraform module for creating a Mailgun domain, Route53 Zone, and corresponding DNS records
https://registry.terraform.io/modules/samstav/aws/mailgun
Apache License 2.0
21 stars 2 forks source link

if zone creation becomes optional, document `count` caveat #6

Open stavxyz opened 6 years ago

stavxyz commented 6 years ago

If the variables referenced in an interpolation which is to be the value of count, then terraform must know the values of those variables/attributes ahead of time.

In the case tf can't know the values involved with computing the count, the user will see:

Error: Error refreshing state: 1 error(s) occurred:

* module.mailer.aws_route53_zone.this: aws_route53_zone.this: value of 'count' cannot be computed

N.B module version which encounters this error yet to be published (currently in development on my laptop)