terraform-aws-multi-az-subnets icon indicating copy to clipboard operation
terraform-aws-multi-az-subnets copied to clipboard

Make acl id parameter a boolean (enable/disable)

Open philwinder opened this issue 6 years ago • 2 comments

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!

philwinder avatar Jan 18 '19 14:01 philwinder

Good request. Hopefully somebody comes through and implements it! 👍

Gowiem avatar May 01 '21 18:05 Gowiem

This has been implemented in terraform-aws-dynamic-subnets

Nuru avatar May 16 '22 00:05 Nuru