Created
March 18, 2022 20:24
-
-
Save scrossan/42b108778adfdec3eba99a91b9c65d9f to your computer and use it in GitHub Desktop.
This file contains 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_service_account" "f5_bigip_user" { | |
account_id = "f5-bigip-user" | |
description = "User for F5 BIGIP" | |
} | |
resource "random_password" "bigip_user" { | |
length = 30 | |
} | |
module "bigip" { | |
source = "F5Networks/bigip-module/gcp" | |
version = "v1.1.2" | |
prefix = "${local.prefix}-f5" | |
project_id = local.project_id | |
zone = "${local.region}-a" | |
service_account = google_service_account.f5_bigip_user.email | |
mgmt_subnet_ids = [{ "subnet_id" = module.vpc.subnets_ids[0], "public_ip" = true, "private_ip_primary" = "" }] | |
f5_username = "bigip" | |
f5_password = random_password.bigip_user.result | |
f5_ssh_publickey = "${path.root}/files/id_ed25519.pub" | |
disk_size_gb = "100" | |
disk_type = "pd-balanced" | |
machine_type = "n2-standard-4" | |
min_cpu_platform = "Cascade Lake" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment