Skip to content

Commit 6549815

Browse files
authored
DEV-15159 update readme and example name (#21)
1 parent 12c6289 commit 6549815

File tree

6 files changed

+38
-63
lines changed

6 files changed

+38
-63
lines changed

README.md

Lines changed: 7 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -3,68 +3,33 @@ This modules launches and configures a tamr VM in gcp. If all the inputs are giv
33
This repo follows the [terraform standard module structure](https://www.terraform.io/docs/modules/index.html#standard-module-structure).
44

55
# Examples
6-
This example just outputs a basic tamr configuration file
7-
```
8-
locals {
9-
gcp_project = "tamr-deployment"
10-
default_region = "us-east1"
11-
default_zone = "us-east1-b"
12-
}
13-
14-
module "sample" {
15-
source = "../"
16-
# bigtable config
17-
tamr_bigtable_project_id = local.gcp_project
18-
tamr_bigtable_instance_id = "tamr-bigtable-instance"
19-
tamr_bigtable_cluster_id = "TAMR_BIGTABLE_CLUSTER_ID"
20-
tamr_bigtable_min_nodes = 1
21-
tamr_bigtable_max_nodes = 10
22-
# dataproc
23-
tamr_dataproc_project_id = local.gcp_project
24-
tamr_dataproc_bucket = "tamr_dataproc_home"
25-
tamr_dataproc_region = local.default_region
26-
# dataproc_cluster_config
27-
tamr_dataproc_cluster_subnetwork_uri = "projects/${local.gcp_project}/regions/${local.default_region}/subnetworks/default"
28-
tamr_dataproc_cluster_service_account = "tamr-instance@${local.gcp_project}.iam.gserviceaccount.com"
29-
tamr_dataproc_cluster_zone = local.default_zone
30-
# cloud sql
31-
tamr_cloud_sql_project = local.gcp_project
32-
tamr_cloud_sql_location = local.default_region
33-
tamr_cloud_sql_name = "tamr-db"
34-
tamr_sql_user = "tamr"
35-
tamr_sql_password = "super_secure_password"
36-
# filesystem
37-
tamr_filesystem_bucket = "tamr_application_home"
38-
}
39-
40-
output "tamr_config" {
41-
value = module.sample.tamr_config_file
42-
}
43-
```
6+
## Minimal
7+
Smallest complete fully working example. This example might require extra resources to run the example.
8+
- [Minimal](https://github.com/Datatamer/terraform-gcp-tamr-vm/tree/master/examples/minimal)
449

4510
# Resources Created
4611
This modules creates:
47-
* a null resource
12+
* a VM instance in order to run Tamr
4813

4914
<!-- BEGINNING OF PRE-COMMIT-TERRAFORM DOCS HOOK -->
5015
## Requirements
5116

5217
| Name | Version |
5318
|------|---------|
5419
| terraform | >= 1.0.0 |
55-
| google | >= 4.6.0 |
20+
| google | >= 4.0 |
5621

5722
## Providers
5823

5924
| Name | Version |
6025
|------|---------|
61-
| google | >= 4.6.0 |
26+
| google | >= 4.0 |
6227

6328
## Inputs
6429

6530
| Name | Description | Type | Default | Required |
6631
|------|-------------|------|---------|:--------:|
67-
| tamr\_config\_file | full tamr config file | `string` | n/a | yes |
32+
| tamr\_config\_file | Override generated tamr configuration. The tamr configuration is specified using a yaml file, in the format that is documented (https://docs.tamr.com/previous/docs/configuration-configuring-unify#section-setting-configuration-variables) for configuring “many variables” at once. | `string` | n/a | yes |
6833
| tamr\_filesystem\_bucket | GCS bucket to use for the tamr default file system | `string` | n/a | yes |
6934
| tamr\_instance\_image | Image to use for boot disk | `string` | n/a | yes |
7035
| tamr\_instance\_project | The project to launch the tamr VM instance in. | `string` | n/a | yes |

examples/basic/README.md

Lines changed: 0 additions & 20 deletions
This file was deleted.

examples/minimal/README.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
<!-- BEGINNING OF PRE-COMMIT-TERRAFORM DOCS HOOK -->
2+
## Requirements
3+
4+
No requirements.
5+
6+
## Providers
7+
8+
| Name | Version |
9+
|------|---------|
10+
| google | n/a |
11+
12+
## Inputs
13+
14+
| Name | Description | Type | Default | Required |
15+
|------|-------------|------|---------|:--------:|
16+
| filesystem\_bucket | n/a | `string` | n/a | yes |
17+
| project\_id | n/a | `string` | n/a | yes |
18+
| subnet\_name | n/a | `string` | n/a | yes |
19+
| instance\_id | n/a | `string` | `"tamr-vm-example"` | no |
20+
| instance\_image | n/a | `string` | `"tamr-private-images/bionic-base-1644877703"` | no |
21+
| region\_id | n/a | `string` | `"us-east1"` | no |
22+
| service\_account | n/a | `string` | `""` | no |
23+
| zip\_url | n/a | `string` | `"gs://tamr-releases/v2022.005.0/unify.zip"` | no |
24+
| zone\_id | n/a | `string` | `"us-east1-b"` | no |
25+
26+
## Outputs
27+
28+
No output.
29+
30+
<!-- END OF PRE-COMMIT-TERRAFORM DOCS HOOK -->
File renamed without changes.

examples/basic/main.tf renamed to examples/minimal/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ data "google_compute_subnetwork" "project_subnet" {
44
project = "tamr-networking"
55
}
66

7-
module "sample" {
7+
module "minimal" {
88
source = "../../"
99

1010
tamr_instance_project = var.project_id
File renamed without changes.

0 commit comments

Comments
 (0)