hashicorp / terraform-provider-aws

The AWS Provider enables Terraform to manage AWS resources.
https://registry.terraform.io/providers/hashicorp/aws
Mozilla Public License 2.0
9.77k stars 9.13k forks source link

[Enhancement]: Only call `ListVersionsByFunction` and populate the `version` and `qualified_invoke_arn` attributes when `publish=true` #38542

Open digitalfiz opened 2 months ago

digitalfiz commented 2 months ago

Description

Right now, we are running into a throttling error when we try to apply a configuration with a large number of lambdas in it, even though we have publish=false. It seems like a waste to make a call to ListVersionsByFunction when that information isn't going to be used, and depending on how many simultaneous deploys you are doing, it could cause throttling issues even when publishing is off.

Affected Resource(s) and/or Data Source(s)

Potential Terraform Configuration

No response

References

Relevant code is here

Would you like to implement a fix?

None

github-actions[bot] commented 2 months ago

Community Note

Voting for Prioritization

Volunteering to Work on This Issue