Skip to content

Commit

Permalink
feat: add ami variables for each protocols
Browse files Browse the repository at this point in the history
  • Loading branch information
Denise Perez committed Sep 9, 2024
1 parent 3ff9470 commit 06e8948
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 3 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -447,6 +447,7 @@ nfs_protocol_gateway_nics_num = 2
nfs_protocol_gateway_disk_size = 48
nfs_protocol_gateway_fe_cores_num = 1
nfs_protocol_gateway_instance_iam_profile_arn = ""
nfs_protocol_gateway_instance_ami_id = ""
```

<br>In order to create stateless clients, need to set variable:
Expand Down Expand Up @@ -544,6 +545,7 @@ s3_protocol_gateway_instance_type = "c5.2xlarge"
s3_protocol_gateway_disk_size = 48
s3_protocol_gateway_fe_cores_num = 1
s3_protocol_gateway_instance_iam_profile_arn = "<YOUR ARN>"
s3_protocol_gateway_instance_ami_id = ""
```

## SMB Protocol Gateways
Expand All @@ -567,6 +569,7 @@ smb_protocol_gateway_fe_cores_num = 1
smb_protocol_gateway_instance_iam_profile_arn = ""
smb_cluster_name = ""
smb_domain_name = ""
smb_protocol_gateway_instance_ami_id = ""
```

<br>In order to create stateless clients, need to set variable:
Expand Down
6 changes: 3 additions & 3 deletions protocol_gateways.tf
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ module "smb_protocol_gateways" {
placement_group_name = local.backends_placement_group_name
use_placement_group = var.use_placement_group
weka_volume_size = var.smb_protocol_gateway_weka_volume_size
ami_id = var.ami_id
ami_id = var.smb_instance_ami_id
sg_ids = local.sg_ids
tags_map = var.tags_map
instance_iam_profile_arn = var.smb_protocol_gateway_instance_iam_profile_arn
Expand Down Expand Up @@ -56,7 +56,7 @@ module "s3_protocol_gateways" {
placement_group_name = local.backends_placement_group_name
use_placement_group = var.use_placement_group
weka_volume_size = var.s3_protocol_gateway_weka_volume_size
ami_id = var.ami_id
ami_id = var.s3_instance_ami_id
sg_ids = local.sg_ids
tags_map = var.tags_map
instance_iam_profile_arn = var.s3_protocol_gateway_instance_iam_profile_arn
Expand Down Expand Up @@ -94,7 +94,7 @@ module "nfs_protocol_gateways" {
placement_group_name = local.backends_placement_group_name
use_placement_group = var.use_placement_group
weka_volume_size = var.nfs_protocol_gateway_weka_volume_size
ami_id = var.ami_id
ami_id = var.nfs_instance_ami_id
sg_ids = local.sg_ids
tags_map = var.tags_map
instance_iam_profile_arn = var.nfs_protocol_gateway_instance_iam_profile_arn
Expand Down
18 changes: 18 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -608,6 +608,12 @@ variable "nfs_capacity_reservation_id" {
description = "The ID of the capacity reservation in which to run the nfs clients"
}

variable "nfs_protocol_gateway_instance_ami_id" {
type = string
description = "The default AMI ID is set to Amazon Linux 2. For the list of all supported Weka Client OSs please refer to: https://docs.weka.io/planning-and-installation/prerequisites-and-compatibility#operating-system"
default = null
}

############################################### SMB protocol gateways variables ###################################################
variable "smb_protocol_gateway_instance_iam_profile_arn" {
type = string
Expand Down Expand Up @@ -680,6 +686,12 @@ variable "smb_capacity_reservation_id" {
description = "The ID of the capacity reservation in which to run the smb clients"
}

variable "smb_protocol_gateway_instance_ami_id" {
type = string
description = "The default AMI ID is set to Amazon Linux 2. For the list of all supported Weka Client OSs please refer to: https://docs.weka.io/planning-and-installation/prerequisites-and-compatibility#operating-system"
default = null
}

############################################### S3 protocol gateways variables ###################################################
variable "s3_protocol_gateway_fe_cores_num" {
type = number
Expand Down Expand Up @@ -723,6 +735,12 @@ variable "s3_capacity_reservation_id" {
description = "The ID of the capacity reservation in which to run the s3 clients"
}

variable "s3_protocol_gateway_instance_ami_id" {
type = string
description = "The default AMI ID is set to Amazon Linux 2. For the list of all supported Weka Client OSs please refer to: https://docs.weka.io/planning-and-installation/prerequisites-and-compatibility#operating-system"
default = null
}

variable "weka_home_url" {
type = string
description = "Weka Home url"
Expand Down

0 comments on commit 06e8948

Please sign in to comment.