Skip to content

Commit a3139f9

Browse files
authored
Merge pull request #128 from Ontotext-AD/GDB-13344
[GDB-13344] Added ability to change the root ebs disk volume size
2 parents fa2dfc1 + 156d88e commit a3139f9

File tree

6 files changed

+35
-0
lines changed

6 files changed

+35
-0
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
# GraphDB AWS Terraform Module Changelog
22

3+
## 2.6.0
4+
5+
* Added support for changing the volume size of the instance root EBS volume.
6+
37
## 2.5.0
8+
49
* Added support for managing Route 53 hosted zones and DNS records via external_dns_records module.
510
* Enhanced KMS key and SNS topic configuration for Route 53 / CloudWatch availability alarms in us-east-1 to support encrypted alert delivery
611
* Update GraphDB default version to [11.1.2](https://graphdb.ontotext.com/documentation/11.1/release-notes.html#graphdb-11-1-2)

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,7 @@ Before you begin using this Terraform module, ensure you meet the following prer
155155
| ebs\_volume\_throughput | Throughput for the EBS volumes, used by the GraphDB nodes. | `number` | `250` | no |
156156
| ebs\_volume\_iops | IOPS for the EBS volumes, used by the GraphDB nodes. | `number` | `8000` | no |
157157
| ebs\_default\_kms\_key | KMS key used for ebs volume encryption. | `string` | `"alias/aws/ebs"` | no |
158+
| root\_ebs\_volume\_size | The size of the root EBS volume. | `number` | `30` | no |
158159
| prevent\_resource\_deletion | Defines if applicable resources should be protected from deletion or not | `bool` | `true` | no |
159160
| graphdb\_license\_path | Local path to a file, containing a GraphDB Enterprise license. | `string` | `null` | no |
160161
| graphdb\_admin\_password | Password for the 'admin' user in GraphDB. | `string` | `null` | no |
@@ -355,6 +356,13 @@ the following variables:
355356
prevent_resource_deletion = false
356357
```
357358

359+
** Changing instance root EBS volume size**
360+
361+
By default the root EBS volume size is 30GB. You can change it with the following variable:
362+
```hcl
363+
root_ebs_volume_size = 100
364+
```
365+
358366
**Backup**
359367

360368
To enable deployment of the backup module, you need to enable the following flag:

main.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,7 @@ module "graphdb" {
242242
graphdb_node_count = var.graphdb_node_count
243243
ec2_key_name = var.ec2_key_name
244244
enable_detailed_monitoring = var.monitoring_enable_detailed_instance_monitoring
245+
root_ebs_volume_size = var.root_ebs_volume_size
245246

246247
# Backup Configurations
247248

modules/graphdb/main.tf

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,16 @@ resource "aws_launch_template" "graphdb" {
6060
enabled = var.enable_detailed_monitoring
6161
}
6262

63+
block_device_mappings {
64+
device_name = "/dev/sda1"
65+
ebs {
66+
volume_size = var.root_ebs_volume_size
67+
volume_type = "gp3"
68+
delete_on_termination = true
69+
encrypted = true
70+
}
71+
}
72+
6373
vpc_security_group_ids = [
6474
aws_security_group.graphdb_security_group.id
6575
]

modules/graphdb/variables.tf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -425,3 +425,8 @@ variable "enable_asg_wait" {
425425
description = "Whether to enable waiting for ASG node readiness"
426426
type = string
427427
}
428+
429+
variable "root_ebs_volume_size" {
430+
description = "The size of the root EBS volume."
431+
type = number
432+
}

variables.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -412,6 +412,12 @@ variable "ebs_default_kms_key" {
412412
default = "alias/aws/ebs"
413413
}
414414

415+
variable "root_ebs_volume_size" {
416+
description = "The size of the root EBS volume."
417+
type = number
418+
default = 30
419+
}
420+
415421
variable "prevent_resource_deletion" {
416422
description = "Defines if applicable resources should be protected from deletion or not"
417423
type = bool

0 commit comments

Comments
 (0)