mirror of
https://github.com/ghndrx/GSP662.git
synced 2026-02-10 15:04:57 +00:00
fix conflicts
This commit is contained in:
19
main.tf
19
main.tf
@@ -2,22 +2,11 @@ terraform {
|
|||||||
required_version = ">= 0.14.0"
|
required_version = ">= 0.14.0"
|
||||||
}
|
}
|
||||||
|
|
||||||
variable "project_id" {
|
|
||||||
description = "The ID of the GCP project."
|
|
||||||
}
|
|
||||||
|
|
||||||
variable "region" {
|
|
||||||
description = "The region to create resources in."
|
|
||||||
default = "us-central1"
|
|
||||||
}
|
|
||||||
|
|
||||||
provider "google" {
|
|
||||||
project = var.project_id
|
|
||||||
region = var.region
|
|
||||||
}
|
|
||||||
|
|
||||||
module "network" {
|
module "network" {
|
||||||
source = "./modules/network"
|
source = "./modules/network"
|
||||||
|
project_id = var.project_id
|
||||||
|
region = var.region
|
||||||
|
network_cidr= var.network_cidr
|
||||||
}
|
}
|
||||||
|
|
||||||
module "backend" {
|
module "backend" {
|
||||||
|
|||||||
@@ -1,10 +1,3 @@
|
|||||||
module "network" {
|
|
||||||
source = "./modules/network"
|
|
||||||
project_id = var.project_id
|
|
||||||
region = var.region
|
|
||||||
network_cidr= var.network_cidr
|
|
||||||
}
|
|
||||||
|
|
||||||
resource "google_compute_instance" "backend" {
|
resource "google_compute_instance" "backend" {
|
||||||
name = "backend"
|
name = "backend"
|
||||||
machine_type = "n1-standard-1"
|
machine_type = "n1-standard-1"
|
||||||
|
|||||||
Reference in New Issue
Block a user