-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.tf
38 lines (30 loc) · 981 Bytes
/
main.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# tflint-ignore-file: terraform_standard_module_structure
# Create the Firebase infrastructure for project
# `./infrastructure` is a Terraform module to keep things tidy.
# Attempting to have only `main.tf` file in the root for cleanliness.
terraform {
required_version = ">= 1.0"
backend "gcs" {} # Manually configured because variables are not allowed. See README.md
}
module "brainfry" {
source = "./infrastructure"
project_name = var.project_name
project_id = var.project_id
billing_account = var.billing_account
}
variable "project_id" {
type = string
description = "Firebase project ID for BrainFry app"
}
variable "project_name" {
type = string
description = "Firebase project name for BrainFry app"
}
variable "billing_account" {
type = string
description = "GCP billing account for BrainFry app"
}
output "web_app_config" {
description = "Firebase App Config"
value = module.brainfry.web_app_config
}