Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add ami variables for each protocols #283

Merged
merged 2 commits into from
Sep 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 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 = "<YOUR 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 = "<YOUR 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 = "<YOUR AMI_ID>"
```

<br>In order to create stateless clients, need to set variable:
Expand Down Expand Up @@ -889,6 +892,7 @@ The `helper_commands` part in the output provides lambda call that can be used t
| <a name="input_nfs_capacity_reservation_id"></a> [nfs\_capacity\_reservation\_id](#input\_nfs\_capacity\_reservation\_id) | The ID of the capacity reservation in which to run the nfs clients | `string` | `null` | no |
| <a name="input_nfs_interface_group_name"></a> [nfs\_interface\_group\_name](#input\_nfs\_interface\_group\_name) | Interface group name. | `string` | `"weka-ig"` | no |
| <a name="input_nfs_protocol_gateway_fe_cores_num"></a> [nfs\_protocol\_gateway\_fe\_cores\_num](#input\_nfs\_protocol\_gateway\_fe\_cores\_num) | The protocol gateways' NICs number. | `number` | `1` | no |
| <a name="input_nfs_protocol_gateway_instance_ami_id"></a> [nfs\_protocol\_gateway\_instance\_ami\_id](#input\_nfs\_protocol\_gateway\_instance\_ami\_id) | AMI ID to use, Amazon Linux 2 is the supported OS. | `string` | `null` | no |
| <a name="input_nfs_protocol_gateway_instance_iam_profile_arn"></a> [nfs\_protocol\_gateway\_instance\_iam\_profile\_arn](#input\_nfs\_protocol\_gateway\_instance\_iam\_profile\_arn) | The protocol gateway instance IAM profile ARN | `string` | `""` | no |
| <a name="input_nfs_protocol_gateway_instance_type"></a> [nfs\_protocol\_gateway\_instance\_type](#input\_nfs\_protocol\_gateway\_instance\_type) | The protocol gateways' virtual machine type (sku) to deploy. | `string` | `"c5n.2xlarge"` | no |
| <a name="input_nfs_protocol_gateway_secondary_ips_per_nic"></a> [nfs\_protocol\_gateway\_secondary\_ips\_per\_nic](#input\_nfs\_protocol\_gateway\_secondary\_ips\_per\_nic) | Number of secondary IPs per single NIC per protocol gateway virtual machine. | `number` | `3` | no |
Expand All @@ -901,6 +905,7 @@ The `helper_commands` part in the output provides lambda call that can be used t
| <a name="input_proxy_url"></a> [proxy\_url](#input\_proxy\_url) | Weka proxy url | `string` | `""` | no |
| <a name="input_s3_capacity_reservation_id"></a> [s3\_capacity\_reservation\_id](#input\_s3\_capacity\_reservation\_id) | The ID of the capacity reservation in which to run the s3 clients | `string` | `null` | no |
| <a name="input_s3_protocol_gateway_fe_cores_num"></a> [s3\_protocol\_gateway\_fe\_cores\_num](#input\_s3\_protocol\_gateway\_fe\_cores\_num) | S3 protocol gateways' NICs number. | `number` | `1` | no |
| <a name="input_s3_protocol_gateway_instance_ami_id"></a> [s3\_protocol\_gateway\_instance\_ami\_id](#input\_s3\_protocol\_gateway\_instance\_ami\_id) | AMI ID to use, Amazon Linux 2 is the supported OS. | `string` | `null` | no |
| <a name="input_s3_protocol_gateway_instance_iam_profile_arn"></a> [s3\_protocol\_gateway\_instance\_iam\_profile\_arn](#input\_s3\_protocol\_gateway\_instance\_iam\_profile\_arn) | The protocol gateway instance IAM profile ARN | `string` | `""` | no |
| <a name="input_s3_protocol_gateway_instance_type"></a> [s3\_protocol\_gateway\_instance\_type](#input\_s3\_protocol\_gateway\_instance\_type) | The protocol gateways' virtual machine type (sku) to deploy. | `string` | `"c5n.2xlarge"` | no |
| <a name="input_s3_protocol_gateway_weka_volume_size"></a> [s3\_protocol\_gateway\_weka\_volume\_size](#input\_s3\_protocol\_gateway\_weka\_volume\_size) | The protocol gateways' default disk size. | `number` | `48` | no |
Expand All @@ -916,6 +921,7 @@ The `helper_commands` part in the output provides lambda call that can be used t
| <a name="input_smb_cluster_name"></a> [smb\_cluster\_name](#input\_smb\_cluster\_name) | The name of the SMB setup. | `string` | `"Weka-SMB"` | no |
| <a name="input_smb_domain_name"></a> [smb\_domain\_name](#input\_smb\_domain\_name) | The domain to join the SMB cluster to. | `string` | `""` | no |
| <a name="input_smb_protocol_gateway_fe_cores_num"></a> [smb\_protocol\_gateway\_fe\_cores\_num](#input\_smb\_protocol\_gateway\_fe\_cores\_num) | The protocol gateways' NICs number. | `number` | `1` | no |
| <a name="input_smb_protocol_gateway_instance_ami_id"></a> [smb\_protocol\_gateway\_instance\_ami\_id](#input\_smb\_protocol\_gateway\_instance\_ami\_id) | AMI ID to use, Amazon Linux 2 is the supported OS. | `string` | `null` | no |
| <a name="input_smb_protocol_gateway_instance_iam_profile_arn"></a> [smb\_protocol\_gateway\_instance\_iam\_profile\_arn](#input\_smb\_protocol\_gateway\_instance\_iam\_profile\_arn) | The protocol gateway instance IAM profile ARN | `string` | `""` | no |
| <a name="input_smb_protocol_gateway_instance_type"></a> [smb\_protocol\_gateway\_instance\_type](#input\_smb\_protocol\_gateway\_instance\_type) | The protocol gateways' virtual machine type (sku) to deploy. | `string` | `"c5n.2xlarge"` | no |
| <a name="input_smb_protocol_gateway_secondary_ips_per_nic"></a> [smb\_protocol\_gateway\_secondary\_ips\_per\_nic](#input\_smb\_protocol\_gateway\_secondary\_ips\_per\_nic) | Number of secondary IPs per single NIC per protocol gateway virtual machine. | `number` | `0` | no |
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_protocol_gateway_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_protocol_gateway_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_protocol_gateway_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 = "AMI ID to use, Amazon Linux 2 is the supported OS."
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 = "AMI ID to use, Amazon Linux 2 is the supported OS."
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 = "AMI ID to use, Amazon Linux 2 is the supported OS."
default = null
}

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