Last active
September 7, 2020 00:58
-
-
Save Callonski/081613e802b4cd8d7e71bd02d168af44 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
resource "google_compute_network" "my-elastic-network" { | |
name = "${var.project_name}-elastic-vpc" | |
auto_create_subnetworks = false | |
} | |
resource "google_compute_subnetwork" "my-elastic-subnet" { | |
name = "my-elastic-subnet" | |
ip_cidr_range = "select a range in your region" | |
network = google_compute_network.my-elastic-network.self_link | |
region = var.region | |
private_ip_google_access = true | |
log_config { | |
aggregation_interval = "INTERVAL_10_MIN" | |
flow_sampling = 0.5 | |
metadata = "INCLUDE_ALL_METADATA" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment