-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds a new "foundations" module (#71)
* Adds a new "common" submodule for generic resources We currently have submodules specific to certain related infrastructure in GCP (e.g., platform-cluster, data-pipeline). There are quite a lot of resources in GCP that do not fall neatly into one piece of infrastructure, or that may be used by multiple things. This "common" submodule is a place to defined such resources. * Adds new common module to mlab-staging and mlab-oti projects * Renames module "common" to "foundations" "common" is too generic a word and maybe too broad, and possibly a reserved sort of word in some contexts.
- Loading branch information
Showing
10 changed files
with
101 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
module "foundations" { | ||
source = "../modules/foundations" | ||
|
||
providers = { | ||
google = google.foundations | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
module "foundations" { | ||
source = "../modules/foundations" | ||
|
||
providers = { | ||
google = google.foundations | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
module "foundations" { | ||
source = "../modules/foundations" | ||
|
||
providers = { | ||
google = google.foundations | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# Submodules | ||
|
||
This directory contains Terraform sub- or child-modules that can be included as | ||
necessary in any of the project root modules. This allows us the flexibility of | ||
including, or not, any module in any project, as needed. | ||
|
||
A modules in this directory should be named after a logically grouped set of | ||
infrastruture that it implement. | ||
|
||
## Module list | ||
|
||
### data-pipeline | ||
|
||
data-pipeline implements infrastructure associated with the ETL pipeline. | ||
|
||
### foundations | ||
|
||
foundations implements instrastructure that doesn't neatly fit into any other | ||
logical grouping of resources, or that may be used by more than one logical | ||
resource group. For example, defining the IAM bindings for the default Cloud | ||
Build service account, which may perform builds related to any or all logical | ||
resource groups, or which may perform builds not relevant to any particular | ||
resource group. | ||
|
||
### platform-cluster | ||
|
||
platform-cluster implements infrastructure associated with M-Lab's primary | ||
platform kubernetes cluster (i.e., where all experiments run). | ||
|
||
### visualizations | ||
|
||
visualizations implements infrastructure related to visualizations of the M-Lab | ||
data. These visualizations may or may not be public resources. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
resource "google_artifact_registry_repository" "build_images" { | ||
location = "us-central1" | ||
repository_id = "build-images" | ||
description = "Cloud Build container images" | ||
format = "DOCKER" | ||
} | ||
|
||
resource "google_artifact_registry_repository_iam_member" "member" { | ||
location = google_artifact_registry_repository.build_images.location | ||
repository = google_artifact_registry_repository.build_images.name | ||
role = "roles/artifactregistry.reader" | ||
member = "allUsers" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
terraform { | ||
required_providers { | ||
google = { | ||
source = "hashicorp/google" | ||
} | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters