Closed jeohist closed 5 years ago
Yes, please, this made for a really weird deploy day for us...
Hi, sorry I didn't see this sooner.
I think we should add an AWS provider restriction for >= 2.0.0
to aws.tf
when doing this.
Just looking into this myself and I don't think you can really pin a provider version in a module without also specifying other fields like region, credentials, etc. I'm currently testing how this works with different versions and will report back.
How the AWS provider works:
> 0
when deciding if it should set a value or be unlimited.
-1
is unlimited0
is unlimited>= 0
when deciding if it should set a value or be unlimited.
-1
is unlimited0
sets a value of 0 which disables the functionSo setting it to -1
has no downside. I'll merge and release this, thanks!
This is in v0.11.3
As https://github.com/terraform-providers/terraform-provider-aws/pull/3806 has been merged into the Terraform AWS Provider 2.0, the current default value of this module will effectively mean no Lambda invocations will be handled. By setting the default value to -1 instead of 0, we return to the original unrestricted value.