Skip to content
This repository has been archived by the owner on Jun 8, 2022. It is now read-only.

Add AWS Provider Version Constraint #45

Closed
wants to merge 1 commit into from

Conversation

claranet-barney
Copy link

AWS Provider modifies the way Lambda Concurrency is handled so that:

-1 == unreserved concurrency
0 == zero concurrency (do not run)

1 == reserved concurrency limits

previous provider versions had used 0 to indicate unreserved
concurrency

This change adds the AWS provider version constraing >= 2.0.0 to
ensure the provider behaves as expected for the module

AWS Provider modifies the way Lambda Concurrency is handled so that:

  -1 == unreserved concurrency
   0 == zero concurrency (do not run)
  >1 == reserved concurrency limits

previous provider versions had used 0 to indicate unreserved
concurrency

This change adds the AWS provider version constraing `>= 2.0.0` to
ensure the provider behaves as expected for the module
@raymondbutcher
Copy link
Contributor

Unfortunately, we can't do this because it also overrides provider configuration. This is explained more in hashicorp/terraform#16835 and will be fixed in Terraform 0.12.

@raymondbutcher
Copy link
Contributor

For context, the problem that @claranet-barney is trying to fix is related to #39 which changed the default concurrency from 0 to -1. This technically works with all AWS provider versions (the deployed Lambda functions work fine) but with AWS provider versions before 2.0.0 Terraform will incorrectly read the -1 as 0 and want to change it back to -1 again.

@claranet-barney
Copy link
Author

Thanks @raymondbutcher that makes sense, i'll close this one 👍

mbklein pushed a commit to nulib/terraform-aws-lambda that referenced this pull request Apr 25, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants