Skip to content

Commit 552c872

Browse files
authored
Ogarrett patch 1 (#395)
notes from installing the sandbox environment recently...
1 parent 18344c0 commit 552c872

File tree

1 file changed

+99
-1
lines changed

1 file changed

+99
-1
lines changed

README.md

Lines changed: 99 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,105 @@ For a quicker destroy for development purposes, you can:
236236
as it does _not_ have the shared DNS suffix (gcp.sandbox.tetrate.io). In this case a public DNS zone will be
237237
created in the project for the configured DNS domain.
238238

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":
276+
│ 93: name_prefix = regex("^\\w+-\\d", "${var.name_prefix}")
277+
│ ├────────────────
278+
│ │ while calling regex(pattern, string)
279+
│ │ var.name_prefix is "owen-two-0-njtu"
280+
```
281+
282+
... ensure that the **name_prefix** only contains letters, numbers and underscores.
283+
284+
### Error: No such file or directory
285+
286+
If you see the following error:
287+
288+
```text
289+
terraform output -json | jq . > ../../outputs/terraform_outputs/terraform-aws-owen1-eu-west-1-0.json
290+
/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`:
326+
327+
```yaml
328+
"tetrate": {
329+
"dns_provider" : "aws"
330+
331+
}
332+
}
333+
```
334+
335+
Valid values are `gcp`, `aws`, `azure`.
336+
337+
## Repository structure
240338

241339
| Directory | Description |
242340
| --------- | ----------- |

0 commit comments

Comments
 (0)