---
title: "Discussion on \"Command - sam build\ndeploying AWS lambda using aws cli\" | Hashnode"
description: "Discussion on \"Command - sam build\ndeploying AWS lambda using aws cli\". Common error encountered:\n\nfirstlambda % sam build\nYour template contains a resource with logical ID \"ServerlessRestApi\", which is a reserved logical ID in AWS SAM. It could result in unexpected behaviors and is not recommended.\nBuilding codeuri: /Us..."
url: "https://hashnode.com/posts/command-sam-build-deploying-aws-lambda-using-aws-cli/62cc293f222e2fa74e9bd133"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Command - sam build deploying AWS lambda using aws cli](https://yipcode.hashnode.dev/command-sam-build-deploying-aws-lambda-using-aws-cli?utm_source=hashnode&utm_medium=feed)

Common error encountered: firstlambda % sam build Your template contains a resource with logical ID "ServerlessRestApi", which is a reserved logical ID in AWS SAM. It could result in unexpected behaviors and is not recommended. Building codeuri: /Us...

Jul 11, 2022 · 1 min read · yipcode.hashnode.dev  
Read the article

-   [#sam-build](https://hashnode.com/tag/sam-build)

## Written by

[kyip](https://hashnode.com/@yipcode)

@yipcode

  
[View profile](https://hashnode.com/@yipcode)

programmer

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
