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
Copy file name to clipboardExpand all lines: README.md
+99-1Lines changed: 99 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -236,7 +236,105 @@ For a quicker destroy for development purposes, you can:
236
236
as it does _not_ have the shared DNS suffix (gcp.sandbox.tetrate.io). In this case a public DNS zone will be
237
237
created in the project for the configured DNS domain.
238
238
239
-
### Repository structure
239
+
## Troubleshooting
240
+
241
+
### Error: Invalid provider configuration
242
+
243
+
If you have an empty `aws` block (`"aws": []`), you may see the error:
244
+
245
+
```text
246
+
Error: Invalid provider configuration
247
+
│
248
+
│ Provider "registry.terraform.io/hashicorp/aws" requires explicit configuration. Add a provider block to the root
249
+
│ module and configure the provider's required arguments as described in the provider documentation.
250
+
```
251
+
252
+
Follow the steps [here](https://stackoverflow.com/a/75626789); the easiest option is to `export AWS_REGION=eu-central-1`
253
+
254
+
### Error: no matching Route 53 Hosted Zone found
255
+
256
+
If you see the following error:
257
+
258
+
```text
259
+
Error: no matching Route 53 Hosted Zone found
260
+
│
261
+
│ with module.register_fqdn.data.aws_route53_zone.zone,
262
+
│ on ../../../modules/aws/register_fqdn/main.tf line 1, in data "aws_route53_zone" "zone":
263
+
│ 1: data "aws_route53_zone" "zone" {
264
+
```
265
+
266
+
... check that the DNS name (for example `yourname.sandbox.tetrate.io`) can be managed from your AWS account. You may need to select a different DNS root.
267
+
268
+
### Error: Error in function call
269
+
270
+
If you see the following error:
271
+
272
+
```text
273
+
Error: Error in function call
274
+
│
275
+
│ on ../../modules/aws/base/main.tf line 93, in resource "local_file" "aws_cleanup":
/home/owen/src/one/tetrate-service-bridge-sandbox/make/helpers.sh: line 19: ../../outputs/terraform_outputs/terraform-aws-owen1-eu-west-1-0.json: No such file or directory
291
+
```
292
+
293
+
... create the directory (`mkdir outputs/terraform_outputs`) and repeat.
294
+
295
+
### Error: Unable to find remote state
296
+
297
+
If you see the following error when deploying the `tsb_mp` on EKS:
298
+
299
+
```text
300
+
Error: Unable to find remote state
301
+
│
302
+
│ with data.terraform_remote_state.k8s_auth,
303
+
│ on main.tf line 8, in data "terraform_remote_state" "k8s_auth":
304
+
│ 8: data "terraform_remote_state" "k8s_auth" {
305
+
│
306
+
│ No stored state was found for the given workspace in the given backend.
307
+
```
308
+
309
+
... make sure to `export AWS_REGION=eu-west-2`, using the correct region.
310
+
311
+
### Error: Failed to read variables file
312
+
313
+
If you see the following error when deploying the `tsb_mp`:
314
+
315
+
```text
316
+
pushd tsb/fqdn/ > /dev/null
317
+
318
+
.....
319
+
╷
320
+
│ Error: Failed to read variables file
321
+
│
322
+
│ Given variables file ../../../terraform.tfvars.json does not exist.
323
+
```
324
+
325
+
... the detection of the DNS provider has failed. Add the following to your `terraform.tfvars.json`:
0 commit comments