Skip to content

Commit 8fe083d

Browse files
author
Premdeep Saini
committed
add configurable EBS volume IOPS with default to 3000
1 parent bb20397 commit 8fe083d

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

main.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ resource "aws_instance" "gitlab" {
2525
root_block_device {
2626
volume_type = var.volume_type
2727
volume_size = var.volume_size
28+
iops = var.volume_iops
2829
delete_on_termination = false
2930
}
3031

variables.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,12 @@ variable "volume_size" {
3636
description = "Size of root EBS volume for Gitlab instance."
3737
}
3838

39+
variable "volume_iops" {
40+
type = number
41+
default = 3000
42+
description = "IOPS for the Gitlab EBS volume"
43+
}
44+
3945
variable "public_subnet_ids" {
4046
type = list(string)
4147
description = "List of public subnet Ids for Gitlab load balancer."

0 commit comments

Comments
 (0)