From ddc473a42212235cfb7cc89ffa62a52156b9fef8 Mon Sep 17 00:00:00 2001 From: chinthalapalli Date: Fri, 13 Oct 2023 13:29:27 +0530 Subject: [PATCH] adding ebs volume size support --- README.md | 1 + main.tf | 1 + variables.tf | 10 ++++++++-- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 36c1df9..15ab02d 100644 --- a/README.md +++ b/README.md @@ -218,6 +218,7 @@ These variables have default values and don't have to be set to use this module. | ebs_volume_encryption | Whether to enable encryption on the EBS volume | `bool` | false | | ebs_volume_kms_key_arn | The ARN of the KMS key for volume encryption when using a customer managed key | `string` | | | ebs_volume_type | The EBS volume type to use for the root volume | `string` | gp2 | +| ebs_volume_size | Size of the volume in gibibytes (GiB) | `number` | 82 | | f5_ami_search_name | BIG-IP AMI name to search for | `string` | F5 BIGIP-*PAYG-Best 200Mbps* | | aws_secretmanager_auth | Whether to use key vault to pass authentication | `bool` | false | | aws_secretmanager_secret_id | AWS Secret Manager Secret ID that stores the BIG-IP password | `string` | | diff --git a/main.tf b/main.tf index 796cd6e..598ad63 100644 --- a/main.tf +++ b/main.tf @@ -197,6 +197,7 @@ resource "aws_instance" "f5_bigip" { delete_on_termination = true encrypted = var.ebs_volume_encryption kms_key_id = var.ebs_volume_kms_key_arn + volume_size = var.ebs_volume_size volume_type = var.ebs_volume_type } diff --git a/variables.tf b/variables.tf index 3fcf91f..eb04043 100644 --- a/variables.tf +++ b/variables.tf @@ -49,6 +49,12 @@ variable "ebs_volume_kms_key_arn" { default = null } +variable "ebs_volume_size" { + description = "Size of the volume in gibibytes (GiB)" + type = number + default = 82 +} + variable "ebs_volume_type" { description = "The EBS volume type to use for the root volume" type = string @@ -135,14 +141,14 @@ variable "internal_securitygroup_ids" { variable "DO_URL" { description = "URL to download the BIG-IP Declarative Onboarding module" type = string - default = "https://github.com/F5Networks/f5-declarative-onboarding/releases/download/v1.39.0/f5-declarative-onboarding-1.39.0-4.noarch.rpm" + default = "https://github.com/F5Networks/f5-declarative-onboarding/releases/download/v1.40.0/f5-declarative-onboarding-1.40.0-8.noarch.rpm" } ## Please check and update the latest AS3 URL from https://github.com/F5Networks/f5-appsvcs-extension/releases/latest # always point to a specific version in order to avoid inadvertent configuration inconsistency variable "AS3_URL" { description = "URL to download the BIG-IP Application Service Extension 3 (AS3) module" type = string - default = "https://github.com/F5Networks/f5-appsvcs-extension/releases/download/v3.46.0/f5-appsvcs-3.46.0-5.noarch.rpm" + default = "https://github.com/F5Networks/f5-appsvcs-extension/releases/download/v3.47.0/f5-appsvcs-3.47.0-8.noarch.rpm" } ## Please check and update the latest TS URL from https://github.com/F5Networks/f5-telemetry-streaming/releases/latest