Skip to content

Commit

Permalink
better names and move documentation around
Browse files Browse the repository at this point in the history
  • Loading branch information
phbnf committed Jul 24, 2024
1 parent 9c7b31b commit 739081d
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 23 deletions.
22 changes: 1 addition & 21 deletions deployment/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,25 +14,5 @@ Deploying these examples requires installation of:

## Deploying

First authenticate via `gcloud` as a principle with sufficient ACLs for
the project:
```bash
gcloud auth application-default login
```

Then, specify your Google Cloud project ID:
```bash
export GOOGLE_PROJECT={VALUE}
```

Eventually, customize the region (defaults to "us-east1"), and bucket name prefix
(defaults to "tessera"):
```bash
export GOOGLE_REGION={VALUE}
export TESSERA_BASE_NAME={VALUE}
```

Terraforming the project can be done by:
1. `cd` to the relevant `live` directory for the environment to deploy/change
2. Run `terragrunt apply`
See individual `live` subdirectories.

24 changes: 24 additions & 0 deletions deployment/live/example-gcp/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
## Deployment

First authenticate via `gcloud` as a principle with sufficient ACLs for
the project:
```bash
gcloud auth application-default login
```

Then, specify your Google Cloud project ID:
```bash
export GOOGLE_PROJECT={VALUE}
```

Eventually, customize the region (defaults to "us-east1"), and bucket name prefix
(defaults to "tessera-example"):
```bash
export GOOGLE_REGION={VALUE}
export TESSERA_BASE_NAME={VALUE}
```

Terraforming the project can be done by:
1. `cd` to the relevant `live` directory for the environment to deploy/change
2. Run `terragrunt apply`

2 changes: 1 addition & 1 deletion deployment/live/example-gcp/terragrunt.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ terraform {
locals {
project_id = get_env("GOOGLE_PROJECT")
location = get_env("GOOGLE_REGION", "us-central1")
base_name = get_env("TESSERA_BASE_NAME", "tessera")
base_name = get_env("TESSERA_BASE_NAME", "tessera-example")
}

inputs = merge(
Expand Down
2 changes: 1 addition & 1 deletion deployment/modules/gcs/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ resource "google_storage_bucket_iam_binding" "log_bucket_writer" {
resource "google_spanner_instance" "log_spanner" {
name = var.base_name
config = "regional-${var.location}"
display_name = "${var.base_name} Spanner Instance"
display_name = "${var.base_name}"
processing_units = 100
}

Expand Down

0 comments on commit 739081d

Please sign in to comment.