When creating custom serverless template, “ServerlessError: serverless.yml not found” Error











up vote
1
down vote

favorite












I have tried to create a custom serverless template.



It is to share the same file structure between all serverless projects I have done.



$ serverless create --template-url https://git-repository-url --path myService


The below is the git repository structure for serverless template.



enter image description here



However, when I run the command above, it returns the error.



Serverless: Downloading and installing "xxxxxxxxxxx"...

Serverless Error ---------------------------------------

serverless.yml not found in /......../myService

Get Support --------------------------------------------
Docs: docs.serverless.com
Bugs: github.com/serverless/serverless/issues
Issues: forum.serverless.com

Your Environment Information -----------------------------
OS: darwin
Node Version: 10.6.0
Serverless Version: 1.32.0


What have I been wrong?



If I clone the repository, I can see a severless.yml file on root dir.










share|improve this question




























    up vote
    1
    down vote

    favorite












    I have tried to create a custom serverless template.



    It is to share the same file structure between all serverless projects I have done.



    $ serverless create --template-url https://git-repository-url --path myService


    The below is the git repository structure for serverless template.



    enter image description here



    However, when I run the command above, it returns the error.



    Serverless: Downloading and installing "xxxxxxxxxxx"...

    Serverless Error ---------------------------------------

    serverless.yml not found in /......../myService

    Get Support --------------------------------------------
    Docs: docs.serverless.com
    Bugs: github.com/serverless/serverless/issues
    Issues: forum.serverless.com

    Your Environment Information -----------------------------
    OS: darwin
    Node Version: 10.6.0
    Serverless Version: 1.32.0


    What have I been wrong?



    If I clone the repository, I can see a severless.yml file on root dir.










    share|improve this question


























      up vote
      1
      down vote

      favorite









      up vote
      1
      down vote

      favorite











      I have tried to create a custom serverless template.



      It is to share the same file structure between all serverless projects I have done.



      $ serverless create --template-url https://git-repository-url --path myService


      The below is the git repository structure for serverless template.



      enter image description here



      However, when I run the command above, it returns the error.



      Serverless: Downloading and installing "xxxxxxxxxxx"...

      Serverless Error ---------------------------------------

      serverless.yml not found in /......../myService

      Get Support --------------------------------------------
      Docs: docs.serverless.com
      Bugs: github.com/serverless/serverless/issues
      Issues: forum.serverless.com

      Your Environment Information -----------------------------
      OS: darwin
      Node Version: 10.6.0
      Serverless Version: 1.32.0


      What have I been wrong?



      If I clone the repository, I can see a severless.yml file on root dir.










      share|improve this question















      I have tried to create a custom serverless template.



      It is to share the same file structure between all serverless projects I have done.



      $ serverless create --template-url https://git-repository-url --path myService


      The below is the git repository structure for serverless template.



      enter image description here



      However, when I run the command above, it returns the error.



      Serverless: Downloading and installing "xxxxxxxxxxx"...

      Serverless Error ---------------------------------------

      serverless.yml not found in /......../myService

      Get Support --------------------------------------------
      Docs: docs.serverless.com
      Bugs: github.com/serverless/serverless/issues
      Issues: forum.serverless.com

      Your Environment Information -----------------------------
      OS: darwin
      Node Version: 10.6.0
      Serverless Version: 1.32.0


      What have I been wrong?



      If I clone the repository, I can see a severless.yml file on root dir.







      serverless-framework






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Nov 9 at 7:51

























      asked Nov 9 at 7:32









      SangminKim

      2,09742260




      2,09742260
























          2 Answers
          2






          active

          oldest

          votes

















          up vote
          0
          down vote













          I don't think the create function works as you expect it to i.e. it wont pull in a repo from a URL.



          From the docs:




          Creating a new service using a local template



          serverless create --template-path path/to/my/template/folder --path path/to/my/service --name my-new-service




          First clone your repo onto your local machine, then run the create command with your local path






          share|improve this answer




























            up vote
            0
            down vote



            accepted










            I should have used git source path URL not just git repository URL.



            # For github
            https://github.com/user/repository-name/tree/branch-name/dir-path

            # For bitbucket
            https://bitbucket.com/user/repository-name/src/branch-name/dir-path





            share|improve this answer





















              Your Answer






              StackExchange.ifUsing("editor", function () {
              StackExchange.using("externalEditor", function () {
              StackExchange.using("snippets", function () {
              StackExchange.snippets.init();
              });
              });
              }, "code-snippets");

              StackExchange.ready(function() {
              var channelOptions = {
              tags: "".split(" "),
              id: "1"
              };
              initTagRenderer("".split(" "), "".split(" "), channelOptions);

              StackExchange.using("externalEditor", function() {
              // Have to fire editor after snippets, if snippets enabled
              if (StackExchange.settings.snippets.snippetsEnabled) {
              StackExchange.using("snippets", function() {
              createEditor();
              });
              }
              else {
              createEditor();
              }
              });

              function createEditor() {
              StackExchange.prepareEditor({
              heartbeatType: 'answer',
              convertImagesToLinks: true,
              noModals: true,
              showLowRepImageUploadWarning: true,
              reputationToPostImages: 10,
              bindNavPrevention: true,
              postfix: "",
              imageUploader: {
              brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
              contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
              allowUrls: true
              },
              onDemand: true,
              discardSelector: ".discard-answer"
              ,immediatelyShowMarkdownHelp:true
              });


              }
              });














               

              draft saved


              draft discarded


















              StackExchange.ready(
              function () {
              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53221483%2fwhen-creating-custom-serverless-template-serverlesserror-serverless-yml-not-f%23new-answer', 'question_page');
              }
              );

              Post as a guest
































              2 Answers
              2






              active

              oldest

              votes








              2 Answers
              2






              active

              oldest

              votes









              active

              oldest

              votes






              active

              oldest

              votes








              up vote
              0
              down vote













              I don't think the create function works as you expect it to i.e. it wont pull in a repo from a URL.



              From the docs:




              Creating a new service using a local template



              serverless create --template-path path/to/my/template/folder --path path/to/my/service --name my-new-service




              First clone your repo onto your local machine, then run the create command with your local path






              share|improve this answer

























                up vote
                0
                down vote













                I don't think the create function works as you expect it to i.e. it wont pull in a repo from a URL.



                From the docs:




                Creating a new service using a local template



                serverless create --template-path path/to/my/template/folder --path path/to/my/service --name my-new-service




                First clone your repo onto your local machine, then run the create command with your local path






                share|improve this answer























                  up vote
                  0
                  down vote










                  up vote
                  0
                  down vote









                  I don't think the create function works as you expect it to i.e. it wont pull in a repo from a URL.



                  From the docs:




                  Creating a new service using a local template



                  serverless create --template-path path/to/my/template/folder --path path/to/my/service --name my-new-service




                  First clone your repo onto your local machine, then run the create command with your local path






                  share|improve this answer












                  I don't think the create function works as you expect it to i.e. it wont pull in a repo from a URL.



                  From the docs:




                  Creating a new service using a local template



                  serverless create --template-path path/to/my/template/folder --path path/to/my/service --name my-new-service




                  First clone your repo onto your local machine, then run the create command with your local path







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Nov 10 at 13:46









                  Gaz_Edge

                  7,82834079




                  7,82834079
























                      up vote
                      0
                      down vote



                      accepted










                      I should have used git source path URL not just git repository URL.



                      # For github
                      https://github.com/user/repository-name/tree/branch-name/dir-path

                      # For bitbucket
                      https://bitbucket.com/user/repository-name/src/branch-name/dir-path





                      share|improve this answer

























                        up vote
                        0
                        down vote



                        accepted










                        I should have used git source path URL not just git repository URL.



                        # For github
                        https://github.com/user/repository-name/tree/branch-name/dir-path

                        # For bitbucket
                        https://bitbucket.com/user/repository-name/src/branch-name/dir-path





                        share|improve this answer























                          up vote
                          0
                          down vote



                          accepted







                          up vote
                          0
                          down vote



                          accepted






                          I should have used git source path URL not just git repository URL.



                          # For github
                          https://github.com/user/repository-name/tree/branch-name/dir-path

                          # For bitbucket
                          https://bitbucket.com/user/repository-name/src/branch-name/dir-path





                          share|improve this answer












                          I should have used git source path URL not just git repository URL.



                          # For github
                          https://github.com/user/repository-name/tree/branch-name/dir-path

                          # For bitbucket
                          https://bitbucket.com/user/repository-name/src/branch-name/dir-path






                          share|improve this answer












                          share|improve this answer



                          share|improve this answer










                          answered Nov 11 at 14:14









                          SangminKim

                          2,09742260




                          2,09742260






























                               

                              draft saved


                              draft discarded



















































                               


                              draft saved


                              draft discarded














                              StackExchange.ready(
                              function () {
                              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53221483%2fwhen-creating-custom-serverless-template-serverlesserror-serverless-yml-not-f%23new-answer', 'question_page');
                              }
                              );

                              Post as a guest




















































































                              Popular posts from this blog

                              Full-time equivalent

                              さくらももこ

                              13 indicted, 8 arrested in Calif. drug cartel investigation