diff --git a/Terraform/delpoy-fsx-ontap/README.md b/Terraform/delpoy-fsx-ontap/README.md index d251e9b..6d6a52a 100644 --- a/Terraform/delpoy-fsx-ontap/README.md +++ b/Terraform/delpoy-fsx-ontap/README.md @@ -2,6 +2,8 @@ This is a Terraform module which creates an FSx for NetApp ONTAP file system, including an SVM, a Security-Group and a FlexVolume in that file system, using AWS Terraform provider. This repo can be sourced as a terraform module. Follow the instructions below to use this sample in your own environment. +> [!NOTE] +> This module does not support scale-out! One ha pair per deployment. ## Table of Contents * [Introduction](#introduction) @@ -123,6 +125,8 @@ module "fsxontap" { } create_sg = true cidr_for_sg = "" + fsx_admin_password = "" + route_table_ids = ["ID-1", "ID-2"] tags = { Terraform = "true" Environment = "dev" @@ -183,19 +187,16 @@ terraform apply -y ### Providers -### Providers - | Name | Version | |------|---------| | aws | n/a | ### Inputs -### Inputs - | Name | Description | Type | Default | Required | |------|-------------|------|---------|:--------:| | fsx_admin_password | The ONTAP administrative password for the fsxadmin user that you can use to administer your file system using the ONTAP CLI and REST API | `string` | n/a | yes | +| route_table_ids | Specifies the VPC route tables in which your file system's endpoints will be created. You should specify all VPC route tables associated with the subnets in which your clients are located. | `list` | n/a | yes | | ad_configuration | Configuration block that Amazon FSx uses to join the FSx ONTAP Storage Virtual Machine(SVM) to your Microsoft Active Directory (AD) directory. | `map` |
{
"netbios_name": "first_svm",
"self_managed_active_directory_configuration": {
"dns_ips": [],
"domain_name": "corp.example.com",
"file_system_administrators_group": "Domain Admins",
"organizational_unit_distinguished_name": "NONE",
"password": "",
"username": ""
}
}
| no | | backup_retention_days | The number of days to retain automatic backups. Setting this to 0 disables automatic backups. You can retain automatic backups for a maximum of 90 days. | `number` | `0` | no | | cidr_for_sg | cide block to be used for the ingress rules | `string` | `"0.0.0.0/0"` | no | @@ -214,8 +215,6 @@ terraform apply -y | storage_type | The filesystem storage type | `string` | `"SSD"` | no | | svm_name | The name of the Storage Virtual Machine | `string` | `"first_svm"` | no | | tags | Tags to be applied to the resources | `map` |
{
"Name": "terraform-fsxn"
}
| no | -| tput_capacity_in_MBps | Sets the throughput capacity (in MBps) for the file system that you're creating. Valid values are 128, 256, 512, 1024, 2048, and 4096. This parameter should only be used when specifying not using the ha_pairs parameter. | `number` | `256` | no | -| tput_capacity_per_pair_in_MBps | Sets the throughput capacity (in MBps) for the file system that you're creating. Valid values are 3072,6144. This parameter should only be used when specifying the ha_pairs parameter. | `number` | `3072` | no | | vol_info | Details for the volume creation | `map` |
{
"bypass_sl_retention": false,
"cooling_period": 31,
"copy_tags_to_backups": false,
"efficiency": true,
"junction_path": "/vol1",
"sec_style": "UNIX",
"size_mg": 1024,
"skip_final_backup": false,
"tier_policy_name": "AUTO",
"vol_name": "vol1",
"vol_type": "RW"
}
| no | | vol_snaplock_configuration | The SnapLock configuration for an FSx for ONTAP volume | `map` |
{
"audit_log_volume": false,
"autocommit_period": {
"type": "NONE",
"value": 0
},
"privileged_delete": "DISABLED",
"retention_period": {
"default_retention": {
"type": "UNSPECIFIED",
"value": 0
},
"maximum_retention": {
"type": "UNSPECIFIED",
"value": 0
},
"minimum_retention": {
"type": "UNSPECIFIED",
"value": 0
}
},
"snaplock_type": "COMPLIANCE",
"volume_append_mode_enabled": false
}
| no | | vol_snapshot_policy | Specifies the snapshot policy for the volume | `map` |
{
"Name": "terraform-fsxn"
}
| no | @@ -223,8 +222,6 @@ terraform apply -y ### Outputs -### Outputs - | Name | Description | |------|-------------| | my_filesystem_id | The ID of the FSxN Filesystem | diff --git a/Terraform/delpoy-fsx-ontap/main.tf b/Terraform/delpoy-fsx-ontap/main.tf index 9233f0c..1b1309a 100644 --- a/Terraform/delpoy-fsx-ontap/main.tf +++ b/Terraform/delpoy-fsx-ontap/main.tf @@ -149,12 +149,9 @@ resource "aws_fsx_ontap_file_system" "terraform-fsxn" { iops = var.disk_iops_configuration[iops] mode = var.disk_iops_configuration[mode] } + fsx_admin_password = var.fsx_admin_password + route_table_ids = var.route_table_ids # endpoint_ip_address_range = "" - # ha_pairs = var.ha_pairs - # fsx_admin_password = var.fsx_admin_password - # route_table_ids = [] - # throughput_capacity = var.fsx_tput_in_MBps - # throughput_capacity_per_ha_pair = var.fsx_tput_per_pair_in_MBps } resource "aws_fsx_ontap_storage_virtual_machine" "mysvm" { diff --git a/Terraform/delpoy-fsx-ontap/variables.tf b/Terraform/delpoy-fsx-ontap/variables.tf index 5dc0d52..2bd5d2d 100644 --- a/Terraform/delpoy-fsx-ontap/variables.tf +++ b/Terraform/delpoy-fsx-ontap/variables.tf @@ -99,16 +99,9 @@ variable "storage_type" { default = "SSD" } -variable "tput_capacity_in_MBps" { - description = "Sets the throughput capacity (in MBps) for the file system that you're creating. Valid values are 128, 256, 512, 1024, 2048, and 4096. This parameter should only be used when specifying not using the ha_pairs parameter." - type = number - default = 256 -} - -variable "tput_capacity_per_pair_in_MBps" { - description = "Sets the throughput capacity (in MBps) for the file system that you're creating. Valid values are 3072,6144. This parameter should only be used when specifying the ha_pairs parameter." - type = number - default = 3072 +variable "route_table_ids" { + description = "Specifies the VPC route tables in which your file system's endpoints will be created. You should specify all VPC route tables associated with the subnets in which your clients are located." + type = list } variable "svm_name" {