diff --git a/README.md b/README.md index 58a0569..666b948 100644 --- a/README.md +++ b/README.md @@ -253,6 +253,7 @@ You can check the status of the certificate in the Google Cloud Console. | [name](#input\_name) | Custom name that's used during resource creation | `string` | n/a | yes | | [network](#input\_network) | Name of the network | `string` | n/a | yes | | [persistent\_disk\_size\_gb](#input\_persistent\_disk\_size\_gb) | The size of the persistent disk that Atlantis uses to store its data on | `number` | `50` | no | +| [persistent\_disk\_type](#input\_persistent\_disk\_type) | The type of persistent disk that Atlantis uses to store its data on | `string` | `"pd-ssd"` | no | | [project](#input\_project) | The ID of the project in which the resource belongs | `string` | `null` | no | | [region](#input\_region) | The region that resources should be created in | `string` | n/a | yes | | [service\_account](#input\_service\_account) | Service account to attach to the instance running Atlantis |
object({
email = string,
scopes = list(string)
})
|
{
"email": "",
"scopes": [
"cloud-platform"
]
}
| no | diff --git a/main.tf b/main.tf index a349248..9b88757 100644 --- a/main.tf +++ b/main.tf @@ -171,7 +171,7 @@ resource "google_compute_instance_template" "default" { # Persistent disk for Atlantis disk { device_name = "atlantis-disk-0" - disk_type = "pd-ssd" + disk_type = var.persistent_disk_type mode = "READ_WRITE" disk_size_gb = var.persistent_disk_size_gb auto_delete = false diff --git a/variables.tf b/variables.tf index 4a57c63..5c864d5 100644 --- a/variables.tf +++ b/variables.tf @@ -201,3 +201,9 @@ variable "shared_vpc" { }) default = null } + +variable "persistent_disk_type" { + type = string + description = "The type of persistent disk that Atlantis uses to store its data on" + default = "pd-ssd" +}