-
Notifications
You must be signed in to change notification settings - Fork 9.2k
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
Add storage_type to aws_fsx_lustre_file_system #14727
Add storage_type to aws_fsx_lustre_file_system #14727
Conversation
2531b11
to
a37e2bd
Compare
de85e3e
to
d290e63
Compare
@DrFaust92 I have another feature PR for FSX lustre. |
hey @mtpdt can you rebase? |
20b38cf
to
83f1101
Compare
@DrFaust92 rebased |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
some docs comments, also lets add some docs for the added possible values for PerUnitStorageThroughput
@@ -36,6 +36,8 @@ The following arguments are supported: | |||
* `kms_key_id` - (Optional) ARN for the KMS Key to encrypt the file system at rest, applicable for `PERSISTENT_1`. Defaults to an AWS managed KMS Key. | |||
* `per_unit_storage_throughput` - (Optional) - Describes the amount of read and write throughput for each 1 tebibyte of storage, in MB/s/TiB, required for the `PERSISTENT_1` deployment_type. For valid values, see the [AWS documentation](https://docs.aws.amazon.com/fsx/latest/APIReference/API_CreateFileSystemLustreConfiguration.html). | |||
* `automatic_backup_retention_days` - (Optional) The number of days to retain automatic backups. Setting this to 0 disables automatic backups. You can retain automatic backups for a maximum of 35 days. only valid for `PERSISTENT_1` deployment_type. | |||
* `storage_type` - (Optional) - The filesystem storage type. Either `SSD` or `HDD`, defaults to `SSD`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lets add a comment that HDD is only relevant for persistent deployment type.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
@@ -36,6 +36,8 @@ The following arguments are supported: | |||
* `kms_key_id` - (Optional) ARN for the KMS Key to encrypt the file system at rest, applicable for `PERSISTENT_1`. Defaults to an AWS managed KMS Key. | |||
* `per_unit_storage_throughput` - (Optional) - Describes the amount of read and write throughput for each 1 tebibyte of storage, in MB/s/TiB, required for the `PERSISTENT_1` deployment_type. For valid values, see the [AWS documentation](https://docs.aws.amazon.com/fsx/latest/APIReference/API_CreateFileSystemLustreConfiguration.html). | |||
* `automatic_backup_retention_days` - (Optional) The number of days to retain automatic backups. Setting this to 0 disables automatic backups. You can retain automatic backups for a maximum of 35 days. only valid for `PERSISTENT_1` deployment_type. | |||
* `storage_type` - (Optional) - The filesystem storage type. Either `SSD` or `HDD`, defaults to `SSD`. | |||
* `drive_cache_type` - (Optional) - Required for `HDD` storage_type, whether to use an SSD drive cache, either `READ` or `NONE`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's add some more info here: start with The type of drive cache used by PERSISTENT_1 file systems that are provisioned with HDD storage devices.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done, added your sentence, and modified the end of it.
tests are passing other than doc comments:
|
83f1101
to
554cf94
Compare
554cf94
to
67e07a6
Compare
Added documentation for the possible values for |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
$ make testacc TEST=./aws TESTARGS='-run=TestAccAWSFsxLustreFileSystem_basic\|TestAccAWSFsxLustreFileSystem_StorageTypeHddDriveCache'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws -v -count 1 -parallel 20 -run=TestAccAWSFsxLustreFileSystem_basic\|TestAccAWSFsxLustreFileSystem_StorageTypeHddDriveCache -timeout 120m
=== RUN TestAccAWSFsxLustreFileSystem_basic
=== PAUSE TestAccAWSFsxLustreFileSystem_basic
=== RUN TestAccAWSFsxLustreFileSystem_StorageTypeHddDriveCacheRead
=== PAUSE TestAccAWSFsxLustreFileSystem_StorageTypeHddDriveCacheRead
=== RUN TestAccAWSFsxLustreFileSystem_StorageTypeHddDriveCacheNone
=== PAUSE TestAccAWSFsxLustreFileSystem_StorageTypeHddDriveCacheNone
=== CONT TestAccAWSFsxLustreFileSystem_basic
=== CONT TestAccAWSFsxLustreFileSystem_StorageTypeHddDriveCacheNone
=== CONT TestAccAWSFsxLustreFileSystem_StorageTypeHddDriveCacheRead
--- PASS: TestAccAWSFsxLustreFileSystem_basic (440.00s)
--- PASS: TestAccAWSFsxLustreFileSystem_StorageTypeHddDriveCacheNone (517.70s)
--- PASS: TestAccAWSFsxLustreFileSystem_StorageTypeHddDriveCacheRead (600.53s)
PASS
ok github.com/terraform-providers/terraform-provider-aws/aws 600.578s
LGTM! 🚀 Thanks @mtpdt Verified Acceptance Tests in Commercial (us-west-2) make testacc TEST=./aws TESTARGS='-run=TestAccAWSFsxLustreFileSystem_basic\|TestAccAWSFsxLustreFileSystem_StorageTypeHddDriveCache'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws -v -count 1 -parallel 20 -run=TestAccAWSFsxLustreFileSystem_basic\|TestAccAWSFsxLustreFileSystem_StorageTypeHddDriveCache -timeout 120m
=== RUN TestAccAWSFsxLustreFileSystem_basic
=== PAUSE TestAccAWSFsxLustreFileSystem_basic
=== RUN TestAccAWSFsxLustreFileSystem_StorageTypeHddDriveCacheRead
=== PAUSE TestAccAWSFsxLustreFileSystem_StorageTypeHddDriveCacheRead
=== RUN TestAccAWSFsxLustreFileSystem_StorageTypeHddDriveCacheNone
=== PAUSE TestAccAWSFsxLustreFileSystem_StorageTypeHddDriveCacheNone
=== CONT TestAccAWSFsxLustreFileSystem_basic
=== CONT TestAccAWSFsxLustreFileSystem_StorageTypeHddDriveCacheNone
=== CONT TestAccAWSFsxLustreFileSystem_StorageTypeHddDriveCacheRead
--- PASS: TestAccAWSFsxLustreFileSystem_StorageTypeHddDriveCacheNone (458.16s)
--- PASS: TestAccAWSFsxLustreFileSystem_basic (592.90s)
--- PASS: TestAccAWSFsxLustreFileSystem_StorageTypeHddDriveCacheRead (599.95s)
PASS
ok github.com/terraform-providers/terraform-provider-aws/aws 601.545s |
@breathingdust @YakDriver FYI, this is missing the precheck for regions the dont support FSx. ill take care of this. |
Handled in #15299 |
This has been released in version 3.9.0 of the Terraform AWS provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template for triage. Thanks! |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks! |
Community Note
Closes #14692
Release note for CHANGELOG:
Output from acceptance testing: