-
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
Bug: AWS SAM and Terraform build error #4902
Comments
Hello @mcorcoran, Could you please move the src, and dist directories to be under the Terraform directory:
and main.tf file content:
|
we already tracking this issue as a feature request, and the team will work on prioritizing this feature |
@moelasmar Thanks so much for your reply! I did notice the previous issue but didn't understand it was related all nested folders, not just terraform modules. Unfortunately, un-nesting everything did not fix my issue. I tried moving both Root
|
is it possible to push this code to some github repository, so I can have a deeper look ? |
one more thing, does the Can you try to execute |
Thank you @moelasmar your questions solved the issue. The container did not in fact have terraform, I'm slapping my head on that one. Thank you for your help! |
|
Description:
I created a new hello world repo and ran the following command:
SAM returns the following:
OSError: [Errno 2] No such file or directory
If I running the following on it's own however it completes successfully:
Executes successfully however.
Steps to reproduce:
Directory Structure:
|->dist
|->src
|->index.src
|->terraform
|->main.tf
main.tf contents:
Observed result:
Expected result:
The build to complete successfully
Additional environment details (Ex: Windows, Mac, Amazon Linux etc)
Add --debug flag to command you are running
The text was updated successfully, but these errors were encountered: