[Bug]: aws_lambda_permission source_account creates invalid IAM condition key #28296
Labels
bug
Addresses a defect in current functionality.
service/lambda
Issues and PRs that pertain to the lambda service.
Terraform Core Version
1.2.9
AWS Provider Version
4.39.0
Affected Resource(s)
aws_lambda_permission
Expected Behavior
When specifying the
source_account
argument, a condition key should be created like so:Condition keys are case-sensitive.
Actual Behavior
The following condition key is created instead:
Relevant Error/Panic Output Snippet
No response
Terraform Configuration Files
Snippet:
Steps to Reproduce
Create any
aws_lambda_permission
resource and specifysource_account
.View the created permissions in the AWS console.
Debug Output
No response
Panic Output
No response
Important Factoids
No response
References
Lambda permissions reference:
https://docs.aws.amazon.com/lambda/latest/dg/urls-auth.html
Condition keys reference:
"StringEquals; Exact matching, case sensitive"
https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_condition_operators.html
Would you like to implement a fix?
Yes
The text was updated successfully, but these errors were encountered: