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-login.zip: No such file or directory #33

Open
LeeDayley-Wellsky opened this issue Mar 25, 2020 · 3 comments
Open

lambda-login.zip: No such file or directory #33

LeeDayley-Wellsky opened this issue Mar 25, 2020 · 3 comments

Comments

@LeeDayley-Wellsky
Copy link

Getting this error when running from a Amazon Linux 2 AMI
Step 8/8 : CMD ["cat", "/build/dist.zip"]
---> Using cache
---> 385619951be4
Successfully built 385619951be4
Successfully tagged cloudformation-lambda-login:latest
./deploy: line 20: ../dist/lambda-login.zip: No such file or directory

Any recommendations?

@agstevens
Copy link
Collaborator

Looks like it is building correctly, but failing on this line 20:
docker run "cloudformation-lambda-$function" > ../dist/lambda-$function.zip

could be something with your docker config or perhaps you have the wrong permissions and can't write that file. Haven't used an AL2 AMI with this. Share it when you figure it out.

@LeeDayley-Wellsky
Copy link
Author

Updated the permissions on the dist folder to 777 using CHMOD -r 777 /dist .
Also ran
yum install -y tar
yum install -y gzip
yum install -y zip

Encase there wasn't a tool installed to compile the zip file. Still getting the same error message.

@jsloan117
Copy link
Contributor

@LeeDayley-Wellsky -- If you're still having issues, you could add "set -xv" in the deploy script and rerun to try and get more info for debugging.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants