Open Rustege opened 2 years ago
This is still happening with terraform version 1.0.11
and AWS Provider 4.20.0
; Is there any update on this
This just happened to us with version 1.2.6 and AWS provider 4.9.0. Could someone please provide some insight into this?
@Rustege were you ever able to solve it?
Just experienced this problem, did anyone manage to solve it?
Community Note
Terraform CLI and Terraform AWS Provider Version
Affected Resource(s)
aws_lambda_event_source_mapping
Terraform Configuration Files
Please include all Terraform configurations required to reproduce the bug. Bug reports without a functional reproduction may be closed without investigation.
Debug Output
Panic Output
Expected Behavior
Lambda Event Source Mapping should be created without any issue
Actual Behavior
Lambda Event Source Mapping creation fails
Steps to Reproduce
terraform init --upgrade
terraform plan -var-file=testing.tfvars -out=tfplan.out
terraform apply tfplan.out
(This would fail with function does not exists)terraform plan -var-file=testing.tfvars -out=tfplan.out
terraform apply tfplan.out
(Rerunning with same configuration works)Important Factoids
Creation of Lambda SQS Event Source mapping should start after Lambda is CREATED; Even though
aws_lambda_event_source_mapping
depends_onaws_lambda_function
, I'm receiving Function does not exist; (Lambda was created without any issue); Rerunning terraform plan/apply works; I believe there are some wait state needed though we mentioned _dependson; And this issue occurs at random intervals(not always)References