# Need a hint ...Deploy Serverless Infrastructure

**URL:** <https://discourse.sst.dev/t/need-a-hint-deploy-serverless-infrastructure/397>\
**Category:** General\
**Created:** [August 13, 2018, 6:51pm UTC](https://discourse.sst.dev/t/need-a-hint-deploy-serverless-infrastructure/397 "2018-08-13T18:51:17Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![toddco](https://avatars.discourse-cdn.com/v4/letter/t/b19c9b/32.png) [@toddco](https://discourse.sst.dev/u/toddco)\
**Post date:** [August 13, 2018, 6:51pm UTC](https://discourse.sst.dev/t/need-a-hint-deploy-serverless-infrastructure/397/1 "2018-08-13T18:51:17Z")

</div>

I’m stuck with an error in the Tutorial at Part II: Deploy your Serverless infrastructure

> **[Deploy Your Serverless Infrastructure](https://serverless-stack.com/chapters/deploy-your-serverless-infrastructure.html)**
>
> To deploy your Serverless Framework project along with your infrastructure to AWS, use the “serverless deploy -v” command. This will display the Stack Outputs as a part of the deployment.

```bash
$ serverless deploy -v

Unlike the tutorial output, my output says:

Serverless: Using configuration:
{
  "webpackConfig": "./webpack.config.js",
  "includeModules": true,
  "packager": "npm",
  "packagerOptions": {},
  "packExternalModulesMaxBuffer": 204800
}
Serverless:
WARNING: Entry for resources@undefined could not be retrieved.
Please check your service config if you want to use lib.entries.
Serverless: Removing / .../my-app/.webpack
Serverless: Bundling with Webpack...
Time: 855ms

Built at: 2018-8-13 10:52:53
        Asset Size Chunks Chunk Names
    delete.js 7.1 KiB 0 [emitted] delete
    update.js 7.62 KiB 1 [emitted] update
      list.js 7.38 KiB 2 [emitted] list
       get.js 7.32 KiB 3 [emitted] get
    create.js 7.21 KiB 4 [emitted] create
delete.js.map 6.17 KiB 0 [emitted] delete
update.js.map 6.96 KiB 1 [emitted] update
  list.js.map 6.43 KiB 2 [emitted] list
   get.js.map 6.46 KiB 3 [emitted] get
create.js.map 6.33 KiB 4 [emitted] create
Entrypoint create = create.js create.js.map
Entrypoint get = get.js get.js.map
Entrypoint list = list.js list.js.map
Entrypoint update = update.js update.js.map
Entrypoint delete = delete.js delete.js.map
   [0] external "source-map-support/register" 42 bytes {0} {1} {2} {3} {4} [built]
   [1] external "babel-runtime/core-js/json/stringify" 42 bytes {0} {1} {2} {3} {4} [built]
   [2] ./libs/response-lib.js 762 bytes {0} {1} {2} {3} {4} [built]
   [3] external "aws-sdk" 42 bytes {0} {1} {2} {3} {4} [built]
   [4] ./libs/dynamodb-lib.js 468 bytes {0} {1} {2} {3} {4} [built]
   [5] external "babel-runtime/helpers/asyncToGenerator" 42 bytes {0} {1} {2} {3} {4} [built]
   [6] external "babel-runtime/regenerator" 42 bytes {0} {1} {2} {3} {4} [built]
   [7] ./delete.js 2.38 KiB {0} [built]
   [8] ./update.js 2.9 KiB {1} [built]
   [9] ./list.js 2.66 KiB {2} [built]
  [10] ./get.js 2.59 KiB {3} [built]
  [11] external "uuid" 42 bytes {4} [built]
  [12] ./create.js 2.36 KiB {4} [built]
Serverless: Fetch dependency graph from /Users/ .../my-app/package.json
Serverless: Package lock found - Using locked versions
Serverless: Packing external modules: source-map-support@^0.4.18, babel-runtime@^6.26.0, uuid@^3.2.1
Serverless: Package took [4392 ms]
Serverless: Copy modules: /Users/ .../my-app/.webpack/service [1864 ms]
Serverless: Prune: /Users/ .../my-appserverless-stack/.webpack/service [2503 ms]
Serverless: Run scripts: /Users/ .../my-app/.webpack/service [0 ms]
Serverless: Zip service: /Users/ .../my-app/.webpack/service [1247 ms]
Serverless: Packaging service...
Serverless: Remove /Users/ .../my-app/.webpack

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

  Missing "handler" property in function "resources". Please make sure you point to the correct lambda handler. For example: handler.hello. Please check the docs for more info

  Your Environment Information -----------------------------
     OS: darwin
     Node Version: 8.11.3
     Serverless Version: 1.30.0

```

Thanks for any suggestions

---

<div class="post-metadata">

**Author:** ![toddco](https://avatars.discourse-cdn.com/v4/letter/t/b19c9b/32.png) [@toddco](https://discourse.sst.dev/u/toddco)\
**Post date:** [August 13, 2018, 8:19pm UTC](https://discourse.sst.dev/t/need-a-hint-deploy-serverless-infrastructure/397/2 "2018-08-13T20:19:52Z")

</div>

Resolved.

My mistake was five topics earlier when first changing the serverless.yml file to add the ‘resources’ section at the bottom. I carefully indented it to match the items above it, instead of outdenting it to create a new section.

---

<div class="post-metadata">

**Author:** ![jayair](https://yyz2.discourse-cdn.com/flex032/user_avatar/discourse.sst.dev/jayair/32/9_2.png) [@jayair](https://discourse.sst.dev/u/jayair)\
**Post date:** [August 15, 2018, 3:32pm UTC](https://discourse.sst.dev/t/need-a-hint-deploy-serverless-infrastructure/397/3 "2018-08-15T15:32:34Z")

</div>

Ah thanks for reporting back. Glad you figure it out.

---

<div class="post-metadata">

**Author:** ![eliasmaia](https://yyz2.discourse-cdn.com/flex032/user_avatar/discourse.sst.dev/eliasmaia/32/469_2.png) [@eliasmaia](https://discourse.sst.dev/u/eliasmaia)\
**Post date:** [April 26, 2019, 12:49am UTC](https://discourse.sst.dev/t/need-a-hint-deploy-serverless-infrastructure/397/4 "2019-04-26T00:49:57Z")

</div>

Thank you for putting your solution.

I was passing by the exactly same mistake.

My terminal output was pretty much the same, and, as you did, I was concerned about the identation, because I had gone throw some errors with the serverless.yml file on the previous chapters, so, thinking about these errors, I decided to do just the same identation.

Thank you! As soon as I saw your solution and “de-idented”, everything worked fine!

---

<div class="post-metadata">

**Author:** ![jayair](https://yyz2.discourse-cdn.com/flex032/user_avatar/discourse.sst.dev/jayair/32/9_2.png) [@jayair](https://discourse.sst.dev/u/jayair)\
**Post date:** [April 28, 2019, 4:28pm UTC](https://discourse.sst.dev/t/need-a-hint-deploy-serverless-infrastructure/397/5 "2019-04-28T16:28:38Z")

</div>

Glad you figured it out.

---

<div class="post-metadata">

**Author:** ![shama2369](https://avatars.discourse-cdn.com/v4/letter/s/f08c70/32.png) [@shama2369](https://discourse.sst.dev/u/shama2369)\
**Post date:** [August 14, 2020, 11:56pm UTC](https://discourse.sst.dev/t/need-a-hint-deploy-serverless-infrastructure/397/6 "2020-08-14T23:56:34Z")

</div>

Thanks a lot . I got the same error and your solution solved it
