terraform-provider-aws: [Bug]: d/aws_lambda_function issue in aws provider 5.23.0
Terraform Core Version
1.5.5
AWS Provider Version
5.23.0
Affected Resource(s)
- aws_lambda_function
Expected Behavior
Created lambda function. worked under 5.22.0
Actual Behavior
got error
Error: setting vpc_config: Invalid address to set: []string{"vpc_config", "0", "ipv6_allowed_for_dual_stack"}
Relevant Error/Panic Output Snippet
No response
Terraform Configuration Files
resource "aws_lambda_function" "lambda" {
function_name = var.function_name
description = var.description
role = aws_iam_role.lambda.arn
image_uri = var.image_uri
timeout = var.timeout
memory_size = var.memory_size
package_type = var.package_type
tags = merge(var.tags, local.tags, { Custodian_Lambda_Error_Exclude = "YES PLEASE" })
environment {
variables = merge(var.environment_variables, {
CLOUDWATCH_LOG_GROUP_NAME = aws_cloudwatch_log_group.lambda.name
ENVIRONMENT = var.environment
REGION = var.region
})
}
vpc_config {
subnet_ids = var.subnet_ids
security_group_ids = var.security_group_ids
}
}
Steps to Reproduce
Ran the terraform code using AWS provider 5.22.0. It runs fine. Under AWS provider 5.23.0 I get the error.
Reverting back to 5.22.0 resolves the issue
Debug Output
No response
Panic Output
No response
Important Factoids
No response
References
No response
Would you like to implement a fix?
None
About this issue
- Original URL
- State: closed
- Created 8 months ago
- Reactions: 32
- Comments: 16 (2 by maintainers)
Relates https://github.com/hashicorp/terraform-provider-aws/pull/34045.
if you drop to
5.22.0no issues , i guess I’ll pin that version for now