Skip to content

Latest commit

 

History

History
56 lines (45 loc) · 4.29 KB

README.md

File metadata and controls

56 lines (45 loc) · 4.29 KB

Requirements

Name Version
terraform >= 1.2.9

Providers

Name Version
google n/a
random n/a

Modules

Name Source Version
cloud_nat terraform-google-modules/cloud-nat/google 2.2.1
gcp_network terraform-google-modules/network/google >= 4.0.1, < 5.0.0
monitoring_vm terraform-google-modules/bastion-host/google 5.0.0
redis terraform-google-modules/memorystore/google 4.4.1
service_account terraform-google-modules/service-accounts/google 4.1.1

Resources

Name Type
google_artifact_registry_repository.repository resource
google_compute_firewall.allow_minitoring_rules resource
google_compute_router.router resource
google_container_cluster.autopilot resource
random_password.postgress_password resource

Inputs

Name Description Type Default Required
access_accounts Account List to access Bastion via IAP list(string) n/a yes
bastion_machine_type Bastion machine type. Bastion have monitoring system and so it need many resourses. string "n2-highcpu-16" no
credential_file_path Credential file path of Google Cloud string n/a yes
memory_size_gb Redis memory size in GiB. Defaulted to 2 GiB number 2 no
monitoring_compose_file Docker compose file of Grafana and Timescall DB
ref: https://github.com/SvenskaSpel/locust-plugins/blob/master/locust_plugins/dashboards/docker-compose.yml
string "https://raw.githubusercontent.com/kazu0716/spanner-stress-test-demo/main/terraform/templates/docker-compose.tmpl.yml" no
project_id Google Cloud project id string n/a yes
region The Google Cloud region to use. string "asia-northeast1" no

Outputs

Name Description
bastion_hostname Bastion's hostname for ssh-port-forwording of grafana dashboard
cluster_name GKE Cluster name of Lucust
instance_internal_ip GCE's internal ip for monitoring
postgress_password postgress password in instance for monitoring by generated terraform randomy
redis_internal_ip Memory Store for Redis's internal ip for load-testing
repository_name Repository name of artifactregistry
service_account Service account for compute resourse