Skip to content

Commit

Permalink
feat: add persistent_disk_type variable
Browse files Browse the repository at this point in the history
  • Loading branch information
d-costa committed Aug 6, 2024
1 parent 76d5214 commit ee0081e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 6 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}

0 comments on commit ee0081e

Please sign in to comment.