Skip to content

Commit ee32884

Browse files
authored
Merge pull request #145 from NetApp/update_terraform_fsxn
Worked around a problem with the AWS provider where iops have to be s…
2 parents f4cf382 + 2b4cfab commit ee32884

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

Terraform/deploy-fsx-ontap/module/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ terraform apply -y
261261
| cidr_for_sg | cidr block to be used for the created security ingress rules. | `string` | `"10.0.0.0/8"` | no |
262262
| create_sg | Determines whether the SG should be deployed as part of this execution or not | `bool` | `true` | no |
263263
| daily_backup_start_time | A recurring daily time, in the format HH:MM. HH is the zero-padded hour of the day (0-23), and MM is the zero-padded minute of the hour. Requires automatic_backup_retention_days to be set. | `string` | `"00:00"` | no |
264-
| disk_iops_configuration | The SSD IOPS configuration for the Amazon FSx for NetApp ONTAP file system | `map(any)` | <pre>{<br> "mode": "AUTOMATIC"<br>}</pre> | no |
264+
| disk_iops_configuration | The SSD IOPS configuration for the file system. Valid modes are 'AUTOMATIC' (3 iops per GB provided) or 'USER_PROVISIONED' with a maxmimum of 160,000 iops. Note, both 'mode' and 'iops' are required, so if setting to AUTOMATIC, set iops to null. | `map(any)` | <pre>{<br> "iops": null,<br> "mode": "AUTOMATIC"<br>}</pre> | no |
265265
| fsx_capacity_size_gb | The storage capacity (GiB) of the FSxN file system. Valid values between 1024 and 196608 | `number` | `1024` | no |
266266
| fsx_deploy_type | The filesystem deployment type. Supports MULTI_AZ_1 and SINGLE_AZ_1 | `string` | `"MULTI_AZ_1"` | no |
267267
| fsx_maintenance_start_time | The preferred start time (in d:HH:MM format) to perform weekly maintenance, in the UTC time zone. | `string` | `"1:00:00"` | no |

Terraform/deploy-fsx-ontap/module/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ resource "aws_fsx_ontap_file_system" "terraform-fsxn" {
3232
dynamic "disk_iops_configuration" {
3333
for_each = var.disk_iops_configuration != null ? [var.disk_iops_configuration] : []
3434
content {
35-
iops = (disk_iops_configuration.value["iops"] != null ? disk_iops_configuration.value["iops"] : 0)
35+
iops = disk_iops_configuration.value["iops"]
3636
mode = disk_iops_configuration.value["mode"]
3737
}
3838
}

Terraform/deploy-fsx-ontap/module/variables.tf

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,10 +114,11 @@ variable "daily_backup_start_time" {
114114
}
115115

116116
variable "disk_iops_configuration" {
117-
description = "The SSD IOPS configuration for the Amazon FSx for NetApp ONTAP file system"
117+
description = "The SSD IOPS configuration for the file system. Valid modes are 'AUTOMATIC' (3 iops per GB provided) or 'USER_PROVISIONED' with a maxmimum of 160,000 iops. Note, both 'mode' and 'iops' are required, so if setting to AUTOMATIC, set iops to null."
118118
type = map(any)
119119
default = {
120120
mode = "AUTOMATIC"
121+
iops = null
121122
}
122123
}
123124

0 commit comments

Comments
 (0)