Skip to content

Commit

Permalink
fix: use machine_type in mig-runner (#30)
Browse files Browse the repository at this point in the history
* Update main.tf

* Update variables.tf

* Update README.md
  • Loading branch information
bharathkkb authored Aug 17, 2021
1 parent 3b39161 commit 4f940f6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion modules/gh-runner-mig-vm/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ This example shows how to deploy a MIG Self Hosted Runner with an image pre-bake
| custom\_metadata | User provided custom metadata | `map` | `{}` | no |
| gh\_token | Github token that is used for generating Self Hosted Runner Token | `string` | n/a | yes |
| instance\_name | The gce instance name | `string` | `"gh-runner"` | no |
| machine\_type | The GCP machine type to deploy | `string` | `"n1-standard-4"` | no |
| machine\_type | The GCP machine type to deploy | `string` | `"n1-standard-1"` | no |
| network\_name | Name for the VPC network | `string` | `"gh-runner-network"` | no |
| project\_id | The project id to deploy Github Runner | `string` | n/a | yes |
| region | The GCP region to deploy instances into | `string` | `"us-east4"` | no |
Expand Down
1 change: 1 addition & 0 deletions modules/gh-runner-mig-vm/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ module "mig_template" {
source = "terraform-google-modules/vm/google//modules/instance_template"
version = "~> 5.0"
project_id = var.project_id
machine_type = var.machine_type
network = local.network_name
subnetwork = local.subnet_name
region = var.region
Expand Down
2 changes: 1 addition & 1 deletion modules/gh-runner-mig-vm/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ variable "additional_metadata" {
variable "machine_type" {
type = string
description = "The GCP machine type to deploy"
default = "n1-standard-4"
default = "n1-standard-1"
}

variable "source_image_family" {
Expand Down

0 comments on commit 4f940f6

Please sign in to comment.