Closed sakrlog closed 1 month ago
Hi @sakrlog,
Thanks for reaching out! Requiring >=5.32.0
was an intentional decision to support the available arguments in the aws_lambda_function resource. Relaxing the version requirement in the Terraform module results in the error below, regardless of whether or not the logging_config
related arguments are used.
│ Error: Unsupported block type
│
│ on ../../main.tf line 178, in resource "aws_lambda_function" "this":
│ 178: dynamic "logging_config" {
│
│ Blocks of type "logging_config" are not expected here.
Here's the relevant AWS provider release: https://github.com/hashicorp/terraform-provider-aws/releases/tag/v5.32.0
data-source/aws_lambda_function: Add logging_config attribute
I'm closing out this issue but feel free to reopen it if you have follow up questions or suggestions for a solution that would allow backwards compatibility with older versions of the AWS provider.
Thanks, Duncan
Expected Behavior
I have this config
Actual Behavior
│ Error: Failed to query available provider packages │ │ Could not retrieve the list of available versions for provider │ hashicorp/aws: no available releases match the given constraints ~> 5.5.0, │ >= 5.32.0
Steps to Reproduce the Problem
1.Set your aws provider to your required version. example:
Specifications
Stacktrace