Skip to content
This repository was archived by the owner on May 20, 2025. It is now read-only.

Commit 0fa70b9

Browse files
committed
Add deployment steps.
1 parent 11a0223 commit 0fa70b9

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

docs/guides/nodejs/survey-application.mdx

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ Under the hood, the system also handles events via topics and handlers for gener
2929

3030
- [Node.js](https://nodejs.org/en/download/)
3131
- The [Nitric CLI](/get-started/installation)
32+
- _(optional)_ Your choice of an [AWS](https://aws.amazon.com), [GCP](https://cloud.google.com) or [Azure](https://azure.microsoft.com) account
3233

3334
## Project Setup
3435

@@ -258,6 +259,39 @@ Use the URL in the response to retrieve your PDF:
258259

259260
![Get PDF](/docs/images/guides/survey-application/pdf.png)
260261

262+
## Deploying to AWS
263+
264+
### Create your stack
265+
266+
Create an AWS stack called `aws-staging` for your staging environment.
267+
268+
```bash
269+
nitric stack new aws-staging aws
270+
```
271+
272+
Inside the stack file, ensure you set your `region`.
273+
274+
```yaml title:nitric.dev.yaml
275+
provider: nitric/aws@latest
276+
region: us-east-2
277+
```
278+
279+
### Deploy
280+
281+
Deploy to AWS using the `nitric up` command. Ensure you have set up your [AWS credentials](/providers/pulumi/aws#usage) correctly.
282+
283+
```bash
284+
nitric up
285+
```
286+
287+
### Tear down
288+
289+
To avoid unwanted costs of running your test app, you can tear down the stack using the `nitric down` command.
290+
291+
```bash
292+
nitric down
293+
```
294+
261295
## Summary
262296

263297
In this guide, you built a backend for handling survey submissions using Nitric and TypeScript:

0 commit comments

Comments
 (0)