Update main

This commit is contained in:
Lorenzo Caggioni 2020-09-10 15:18:32 +02:00
parent 5eaed81f9c
commit e7955fb1ef
1 changed files with 24 additions and 4 deletions

View File

@ -14,6 +14,10 @@
* limitations under the License. * limitations under the License.
*/ */
###############################################################################
# Projects #
###############################################################################
module "project" { module "project" {
source = "../../modules/project" source = "../../modules/project"
name = var.project_id name = var.project_id
@ -48,6 +52,10 @@ module "service-account" {
} }
} }
###############################################################################
# Pub/Sub #
###############################################################################
module "pubsub" { module "pubsub" {
source = "../../modules/pubsub" source = "../../modules/pubsub"
project_id = module.project.project_id project_id = module.project.project_id
@ -59,6 +67,10 @@ module "pubsub" {
# at the project level via roles/cloudscheduler.serviceAgent # at the project level via roles/cloudscheduler.serviceAgent
} }
###############################################################################
# Cloud Function #
###############################################################################
module "cf" { module "cf" {
source = "../../modules/cloud-function" source = "../../modules/cloud-function"
project_id = module.project.project_id project_id = module.project.project_id
@ -84,6 +96,14 @@ module "cf" {
} }
} }
resource "random_pet" "random" {
length = 1
}
###############################################################################
# Cloud Scheduler #
###############################################################################
resource "google_app_engine_application" "app" { resource "google_app_engine_application" "app" {
project = module.project.project_id project = module.project.project_id
location_id = "europe-west" location_id = "europe-west"
@ -110,6 +130,10 @@ resource "google_cloud_scheduler_job" "job" {
} }
} }
###############################################################################
# Bigquery #
###############################################################################
module "bigquery-dataset" { module "bigquery-dataset" {
source = "../../modules/bigquery-dataset" source = "../../modules/bigquery-dataset"
project_id = module.project.project_id project_id = module.project.project_id
@ -121,7 +145,3 @@ module "bigquery-dataset" {
owner = module.service-account.email owner = module.service-account.email
} }
} }
resource "random_pet" "random" {
length = 1
}