-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Terraform Support] Error Linking Multiple Layers to a Function #4395
Comments
+1 |
1 similar comment
+1 |
Hello @TLaue, @timmy86125 |
Hello @moelasmar, I am adding at least the following two Lambda layers to more or less every function declaration in Terraform: I am mostly using the Terraform-AWS-Modules Lambda package (https://registry.terraform.io/modules/terraform-aws-modules/lambda/aws/latest) for to declare my functions - just in case this makes any difference. |
Hi @moelasmar, I am currently using two Layers on Lambda
When I use the following command to execute it, I encounter the following error
|
+1 Whats the status of this? |
You can now try to run Please share with us your feedback about this workaround, and if it is a visible solution for you or not. Also, we are looking for your feedback about if you would like that SAM CLI run |
@moelasmar, I am using multiple Lambda layers with Terraform (via |
AWS SAM CLI support for Terraform is in preview as of today. The team has worked hard to implement a solid minimum viable product (MVP) to get feedback from our community. However, there are a few caveats. Please +1 on individual items to help us prioritize these.
AWS SAM CLI does not currently support linking multiple Lambda Layers to a Lambda Function with Terraform projects. Similary, AWS SAM CLI does not support the use of conditional expressions or coalesce functions to select resources. Doing this will result in a
OneLambdaLayerLinkingLimitationException
. Follow this issue for updates on this feature.The text was updated successfully, but these errors were encountered: