TractorZoom / sam-cli-action

Github Action to build, package, and deploy serverless applications using the AWS SAM CLI.
18 stars 9 forks source link

Template.yml not found #12

Closed fernandosolivas closed 4 years ago

fernandosolivas commented 4 years ago

Describe the bug The action can not found the template.yml in root of repository.

To Reproduce Steps to reproduce the behavior:

  1. Create a new repository with nodejs
  2. Add the action to .yml file in root directory
  3. Commit and push
  4. See error

Expected behavior It should recognize the file in the root directory or at least the message should point to the correct expected directory.

Screenshots

Captura de Tela 2020-07-17 às 09 59 10 Captura de Tela 2020-07-17 às 09 59 48
cody-hoffman commented 4 years ago

This looks like an issue with your setup. We have multiple projects deploying daily with this action using a template.yml in the root. Are you able to deploy this project via the sam cli locally?

fernandosolivas commented 4 years ago

Originally I thought that was a setup problem but locally I am able to build and deploy normally as you can see at this screenshot below.

*the timezone is GMT-3

Captura de Tela 2020-07-17 às 10 50 54
cody-hoffman commented 4 years ago

Do you have a samconfig file that needs pushed up to your github repo?

fernandosolivas commented 4 years ago

Yes, I have.

version = 0.1
[default]
[default.deploy]
[default.deploy.parameters]
stack_name = "scale-api"
s3_bucket = <name>
s3_prefix = "scale-api"
region = "us-east-1"
capabilities = "CAPABILITY_IAM"
fernandosolivas commented 4 years ago

Here are the job action and repo: https://github.com/fernandosolivas/scale-api/runs/882256802

This action is an amazing job, so I am trying to debug the source code in entrypoint.sh and add more "debuggable" info to contribute to fixing or at least put more information.

cody-hoffman commented 4 years ago

You could try sam build -t template.yml to make sure it can find your template

fernandosolivas commented 4 years ago

I've found the error. As you pointed before was an action setup problem. Thanks for your attention and really great job in this action!

matheushent commented 3 years ago

I am facing the following error:

Error: PythonPipBuilder:ResolveDependencies - Requirements file not found: /tmp/samcli/source/requirements.txt

Any guess on what is going on?

kmehtaJRNI commented 2 years ago

@fernandosolivas What was the issue in the action? I am facing the same problem but not able to locate the issue. :(