Skip to content
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

Lambda deploy script failure #118

Closed
alexedwardjones opened this issue Feb 28, 2021 · 3 comments
Closed

Lambda deploy script failure #118

alexedwardjones opened this issue Feb 28, 2021 · 3 comments

Comments

@alexedwardjones
Copy link
Contributor

Summary

The deployment script for the lambda deploy module is failing in my setup.

image

I believe this is because the script gets run in the /bin/sh shell which doesn't support the double square brackets.

Potential Fix

Could the fix be as simple as setting the interpreter to /bin/bash?

https://www.terraform.io/docs/language/resources/provisioners/local-exec.html#interpreter

@antonbabenko
Copy link
Member

Thanks for the report and interpreter is now supported as a module argument (and it uses /bin/bash -c, by default). Ref: https://github.com/terraform-aws-modules/terraform-aws-lambda/pull/92/files#diff-bc2f2fc8cab216f176d3974258485159272113b47e5e19ab9fb23021d608dd1cR43-R47

v1.41.0 has been just released.

@alexedwardjones
Copy link
Contributor Author

Thank you!

@github-actions
Copy link

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.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 10, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants