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 Aug 16, 2022. It is now read-only.
go test -run=TestIntegration -tags=integration ./...
79
88
```
80
89
81
-
>**Important** When adding a single resource, it's more common to only run the test for a specific table. You'll need to ensure your resource has the relevant Terraform service deployed
90
+
>**Important** When adding a single resource, it's more common to only run the test for a specific table. You'll need to ensure your resource has the relevant Terraform service deployed.
82
91
83
92
#### Adding new Terraform Files Guidelines
84
93
85
94
Terraform files are organized under the [`terraform`](../../terraform/) folder, and each service has its own folder.
86
95
Under each service folder, we organize files into 3 folders:
87
-
-`local`: When testing locally run the terraform CLI from here
96
+
-`local`: When testing locally run the Terraform CLI from here
88
97
-`modules/tests`: Terraform resource and module definitions go here
89
98
-`prod`: This folder is used for our CI testing. See relevant scripts [here](../../scripts/). **Not to be used locally**
90
99
@@ -96,12 +105,12 @@ There are a few good rules of thumb to follow when creating new terraform resour
96
105
* For every compute/db try to use the smallest size to keep the cost low
97
106
* If autoscaling option is present, always turn it off
98
107
99
-
If you want to apply the terraform locally first before pushing it to CI and applying there use:
108
+
If you want to apply the Terraform locally first before pushing it to CI and applying there, use:
100
109
101
110
```bash
102
111
cd terraform/YOUR_SERVICE_NAME/local
103
112
terraform init
104
-
#Use AB as your initial so you can have multiple team members working on the same account without conflicting resources
113
+
#Replace AB with your own initials so multiple team members can work on the same account without conflicting resources
105
114
terraform apply -var="prefix=AB"
106
115
go test -run="TestIntegration/ROOT_TABLE_NAME" -tags=integration ./...
0 commit comments