Skip to content
This repository has been archived by the owner on Jan 5, 2024. It is now read-only.

grupacosmo/gcp-starter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gcp-starter

Basic quality of life

Create custom network and connection with firewall rules (TODO):

resource "google_compute_global_address" "external-ip" { project = "cosmo-webdev" name = "ipv4-address" address_type = "EXTERNAL" ip_version = "IPV4" }

resource "google_compute_network" "vpc_network" { name = "custom-network" auto_create_subnetworks = false mtu = 1500 }

resource "google_compute_subnetwork" "defualt" { name = "custom-subnet" ip_cidr_range = "10.0.1.0/24" region = "europe-west4" network = google_compute_network.vpc_network.id }

Receive address:

data "google_compute_global_address" "external-ip" project = "cosmo-webdev" }

Basic flow:

terraform init
terraform validate
terraform apply

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published