terraform-aws-multi-az-subnets
terraform-aws-multi-az-subnets copied to clipboard
Make acl id parameter a boolean (enable/disable)
There is a parameter that allows you to pass in an externally created NACL id. If you do, then you get the horrible "cannot compute count" error, because it is an interpolated value.
But after looking at the code, it's not actually used anywhere. It's just used as a boolean. For example here: https://github.com/cloudposse/terraform-aws-multi-az-subnets/blob/master/public.tf#L36
So I've just passed in a string named "disable" and it works as intended.
Can you change it to be a boolean? Like the ngw enable/disable?
Thanks!
Good request. Hopefully somebody comes through and implements it! 👍
This has been implemented in terraform-aws-dynamic-subnets