Skip to content

Commit

Permalink
tf fix
Browse files Browse the repository at this point in the history
  • Loading branch information
AlCutter committed Jul 4, 2024
1 parent 1a3818e commit f2227d0
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions deployment/modules/gcs/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ resource "google_service_account" "log_writer" {

# Buckets

resource "google_storage_bucket" "log" {
resource "google_storage_bucket" "log_bucket" {
location = var.location
name = var.base_name
name = "${var.base_name}-bucket"
storage_class = "STANDARD"
uniform_bucket_level_access = true
}
Expand All @@ -50,15 +50,15 @@ resource "google_storage_bucket_iam_member" "log_bucket_reader" {

# Spanner

resource "google_spanner_instance" "log" {
resource "google_spanner_instance" "log_spanner" {
name = var.base_name
config = "regional-${var.location}"
display_name = "${var.base_name} Spanner Instance"
processing_units = 100
}

resource "google_spanner_database" "log" {
instance = google_spanner_instance.log.name
resource "google_spanner_database" "log_db" {
instance = google_spanner_instance.log_spanner.name
name = "${var.base_name}-db"
ddl = [
"CREATE TABLE SeqCoord (id INT64 NOT NULL, next INT64 NOT NULL,) PRIMARY KEY (id)",
Expand All @@ -68,8 +68,8 @@ resource "google_spanner_database" "log" {
}

resource "google_spanner_database_iam_binding" "database" {
instance = google_spanner_instance.log
database = google_spanner_database.log
instance = google_spanner_instance.log_spanner.name
database = google_spanner_database.log_db.name
role = "roles/compute.networkUser"

members = [
Expand Down

0 comments on commit f2227d0

Please sign in to comment.