You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 20, 2025. It is now read-only.
@@ -263,17 +245,13 @@ Now that you have your WebSocket application defined with handlers for each even
263
245
nitric start
264
246
```
265
247
266
-
Once it starts, the application will be ready to accept WebSocket connections. You can use a WebSocket client like Postman or any other WebSocket tool to test the application.
248
+
Once it starts, the application will be ready to accept WebSocket connections. You can use a WebSocket client like Postman or any other WebSocket tool to test the application. Alternatively, you can use the [Nitric Dashboard](/get-started/foundations/projects/local-development#local-dashboard).
267
249
268
-
We will keep it running for our tests. If you want to update your services, just save them, and they'll be reloaded automatically.
250
+
We will keep it running for our tests.
269
251
270
252
## Deploy to the cloud
271
253
272
-
At this point, you can deploy what you've built to any of the supported cloud providers. To do this, start by setting up your credentials and any configuration for the cloud you prefer:
273
-
274
-
-[AWS](/reference/providers/aws)
275
-
-[Azure](/reference/providers/azure)
276
-
-[GCP](/reference/providers/gcp)
254
+
At this point, you can deploy what you've built to any of the supported cloud providers. To do this, start by setting up your credentials and configuration for [AWS](/providers/pulumi/aws).
277
255
278
256
Next, we'll need to create a `stack`. A stack represents a deployed instance of an application, which is a key value store of resources defined in your project. You might want separate stacks for each environment, such as stacks for `dev`, `test`, and `prod`. For now, let's start by creating a `dev` stack.
Copy file name to clipboardExpand all lines: docs/guides/terraform/terratest.mdx
+9-9Lines changed: 9 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
---
2
-
description: Use Terratest to validate the infrastructure of a Nitric GO project deployed with Terraform
2
+
description: Use Terratest to validate the infrastructure of a Nitric Go project deployed with Terraform
3
3
tags:
4
4
- Terraform
5
5
- Testing
@@ -13,10 +13,10 @@ This guide will walk you through adding [Terratest](https://terratest.gruntwork.
13
13
14
14
Terratest is designed to automate the entire process of testing your Terraform code with the following steps:
15
15
16
-
-**Initialize**: Terratest will automatically run terraform init to initialize the Terraform working directory.
17
-
-**Apply**: It will then run terraform apply to deploy the infrastructure as defined in your Terraform code.
16
+
-**Initialize**: Terratest will automatically run `terraform init` to initialize the Terraform working directory.
17
+
-**Apply**: It will then run `terraform apply` to deploy the infrastructure as defined in your Terraform code.
18
18
-**Assert**: The test script will then run assertions to check that the infrastructure was created as expected.
19
-
-**Teardown**: Finally, it will run terraform destroy to tear down the infrastructure after the test completes.
19
+
-**Teardown**: Finally, it will run `terraform destroy` to tear down the infrastructure after the test completes.
20
20
21
21
## What we'll be doing
22
22
@@ -26,7 +26,7 @@ Terratest is designed to automate the entire process of testing your Terraform c
26
26
27
27
## Create and set up your application.
28
28
29
-
Our sample project creates a real-time communication service using [websockets](/websockets) and a [key-value store](/keyvalue) for connections.
29
+
Our sample project creates a real-time communication service using [WebSockets](/websockets) and a [key-value store](/keyvalue) for connections.
30
30
31
31
We intend to deploy to AWS and will use Terratest to ensure that the following:
32
32
@@ -113,7 +113,7 @@ func main() {
113
113
114
114
## Deploying to AWS with a Terraform provider
115
115
116
-
To deploy your application with Terraform you'll need to use Nitric's Terraform providers. You can learn more about using Nitric with Terraform [here](/reference/providers/terraform).
116
+
To deploy your application with Terraform you'll need to use Nitric's Terraform providers. You can learn more about using Nitric with Terraform [here](/providers/terraform).
117
117
118
118
```
119
119
nitric stack new dev aws-tf
@@ -156,7 +156,7 @@ go get github.com/aws/aws-sdk-go/aws/session
156
156
go get github.com/aws/aws-sdk-go/service/apigatewayv2
0 commit comments