diff --git a/main.tf b/main.tf index 4348b68..e884bb7 100644 --- a/main.tf +++ b/main.tf @@ -3,4 +3,10 @@ module "storage" { source = "./modules/storage" project_id = var.project_id + } + +module "instance" { + source = "./modules/instances" + +} \ No newline at end of file diff --git a/modules/storage/main.tf b/modules/storage/main.tf index 1e22bc0..942aa83 100644 --- a/modules/storage/main.tf +++ b/modules/storage/main.tf @@ -9,7 +9,7 @@ resource "google_storage_bucket_object" "startup_script" { bucket = google_storage_bucket.fancy_store.name source = "${path.module}/startup-script.sh" content_type = "text/plain" -} -variable "project_id" { -} \ No newline at end of file + depends_on = [google_storage_bucket.fancy_store] + +}