Closed royassis closed 1 year ago
The error is not related to the module itself. Please check logs in CloudWatch or in the Lambda console.
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
Description
This Terraform project contains terraform-aws-modules/lambda/aws modules and resources of a Private Rest API Gateway. After applying using Terraform Cloud, the API-GW endpoints return:
This happens only when I change the code in the source_path of the module. And it affects only the current deployment of the apigw stage. When running the lambda from the test console of API Gateway it works, so does testing the lambda from the lambda console. Creating a new deployment fixes it. When looking at the previous lambda version the Resource-based policy statements looks ok.
⚠️ Note
Before you submit an issue, please perform the following first:
.terraform
directory (! ONLY if state is stored remotely, which hopefully you are following that best practice!):rm -rf .terraform/
terraform init
Versions
Your version of Terraform is out of date! The latest version is 1.3.7. You can update by downloading from https://www.terraform.io/downloads.html
Reproduction Code [Required]
Steps to reproduce the behavior:
```terraform locals { source_arn = "arn:aws:execute-api: