<p>1.) Create API (<a href="https://docs.aws.amazon.com/cli/latest/reference/apigateway/create-rest-api.html" rel="nofollow noreferrer">create-rest-api</a> from the cli) simply creates the API Gateway resource, but it does not create the method, stage, authorizer, etc. for your API Gateway.  Deploy API (<a href="https://docs.aws.amazon.com/cli/latest/reference/apigateway/create-deployment.html" rel="nofollow noreferrer">create-deployment</a> from the cli) will deploy either to an already created stage, or create a new stage for deployment. </p>

<p>2.) No, it will not deploy a CloudFormation stack in your account. </p>

CC BY-SA 4.0
2019-11-30T03:32:53.433Z
How to troubleshoot such issue? https://stackoverflow.com/q/59108077/3317808
overexchange
CC BY-SA 4.0
2019-08-12T19:48:17.610Z
2019-08-12T19:48:17.610Z
Preston Martin
<p>After <strong>creating</strong> API Gateway with two API names and integrating with lambda function, </p>

<p>AWS documentation recommends to <strong>deploy</strong> this API, as shown below:</p>

<h2><a href="https://i.sstatic.net/E4BTk.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/E4BTk.png" alt="enter image description here"></a></h2>

<p>1) What does deploy API mean? How creating API gateway different from deploying API?</p>

<p>2) Does deploy API option internally create Cloud formation template? that creates a stack and deploy</p>

<amazon-web-services><aws-lambda><aws-cloudformation>
API Gateway - How Deploy API works?
overexchange
# API Gateway - How Deploy API works?

(Asked by: username_0 on 2019-08-12)

After **creating** API Gateway with two API names and integrating with lambda function,

AWS documentation recommends to **deploy** this API, as shown below:

## [enter image description here](https://i.sstatic.net/E4BTk.png)

1) What does deploy API mean? How creating API gateway different from deploying API?

2) Does deploy API option internally create Cloud formation template? that creates a stack and deploy

**Tags:** amazon-web-services, aws-lambda, aws-cloudformation


---

## 1 answers

### Answer by username_1 on 2019-08-12. Score: 2

1.) Create API ([create-rest-api](https://docs.aws.amazon.com/cli/latest/reference/apigateway/create-rest-api.html) from the cli) simply creates the API Gateway resource, but it does not create the method, stage, authorizer, etc. for your API Gateway. Deploy API ([create-deployment](https://docs.aws.amazon.com/cli/latest/reference/apigateway/create-deployment.html) from the cli) will deploy either to an already created stage, or create a new stage for deployment.

2.) No, it will not deploy a CloudFormation stack in your account.

> **Comments:**
> **username_0**: How to troubleshoot such issue? https://stackoverflow.com/q/59108077/3317808  

---

