-
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.
Add new project root module for measurement-lab (#69)
* Adds google.visualizations provider alias to mlab-oti main.tf We aren't currently using the visualizations module anywhere in the mlab-oti configuration. However, TF's documentation makes it sound like you should always list all configuration aliases in the required_providers section, which is shared between all projects. If you add the alias to the configuration_aliases list, but don't declare it in the module, TF will emit an error. * Adds new project root module for measurement-lab As a start, it adds the visualizations module, since the public Grafana instance will run in that project. * Adds provider alias defs for platform-cluster and visualizations versions.tf is shared between all projects, and in that file any configuration_aliases that are listed, must be defined in the root module, even if those aliases are not used.
- Loading branch information
Showing
7 changed files
with
85 additions
and
1 deletion.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,32 @@ | ||
terraform { | ||
backend "gcs" { | ||
# Terraform does not allow variable interpolation in backend blocks. | ||
bucket = "terraform-support-measurement-lab" | ||
prefix = "state" | ||
} | ||
} | ||
|
||
provider "google" { | ||
project = "measurement-lab" | ||
} | ||
|
||
provider "google" { | ||
alias = "platform-cluster" | ||
project = "measurement-lab" | ||
region = "us-central1" | ||
zone = "us-central1-a" | ||
} | ||
|
||
provider "google" { | ||
alias = "data-pipeline" | ||
project = "measurement-lab" | ||
region = "us-central1" | ||
zone = "us-central1-a" | ||
} | ||
|
||
provider "google" { | ||
alias = "visualizations" | ||
project = "measurement-lab" | ||
region = "us-central1" | ||
zone = "us-central1-a" | ||
} |
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 @@ | ||
../versions.tf |
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,7 @@ | ||
module "visualizations" { | ||
source = "../modules/visualizations" | ||
|
||
providers = { | ||
google = google.visualizations | ||
} | ||
} |
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
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