-
Notifications
You must be signed in to change notification settings - Fork 9.9k
[Enhancement] aws_fsx_openzfs_file_system: Support Intelligent-Tiering storage type #45159
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
[Enhancement] aws_fsx_openzfs_file_system: Support Intelligent-Tiering storage type #45159
Conversation
Community GuidelinesThis comment is added to every new Pull Request to provide quick reference to how the Terraform AWS Provider is maintained. Please review the information below, and thank you for contributing to the community that keeps the provider thriving! 🚀 Voting for Prioritization
Pull Request Authors
|
246b449 to
2b6f01d
Compare
% make testacc TESTARGS='-run=TestAccFSxOpenZFSFileSystem_' PKG=fsx ACCTEST_PARALLELISM=4
make: Verifying source code with gofmt...
==> Checking that code complies with gofmt requirements...
make: Running acceptance tests on branch: 🌿 HEAD 🌿...
TF_ACC=1 go1.24.10 test ./internal/service/fsx/... -v -count 1 -parallel 4 -run=TestAccFSxOpenZFSFileSystem_ -timeout 360m -vet=off
2025/11/20 12:53:57 Creating Terraform AWS Provider (SDKv2-style)...
2025/11/20 12:53:57 Initializing Terraform AWS Provider (SDKv2-style)...
=== RUN TestAccFSxOpenZFSFileSystem_basic
=== PAUSE TestAccFSxOpenZFSFileSystem_basic
=== RUN TestAccFSxOpenZFSFileSystem_diskIops
=== PAUSE TestAccFSxOpenZFSFileSystem_diskIops
=== RUN TestAccFSxOpenZFSFileSystem_disappears
=== PAUSE TestAccFSxOpenZFSFileSystem_disappears
=== RUN TestAccFSxOpenZFSFileSystem_rootVolume
=== PAUSE TestAccFSxOpenZFSFileSystem_rootVolume
=== RUN TestAccFSxOpenZFSFileSystem_securityGroupIDs
=== PAUSE TestAccFSxOpenZFSFileSystem_securityGroupIDs
=== RUN TestAccFSxOpenZFSFileSystem_tags
=== PAUSE TestAccFSxOpenZFSFileSystem_tags
=== RUN TestAccFSxOpenZFSFileSystem_copyTags
=== PAUSE TestAccFSxOpenZFSFileSystem_copyTags
=== RUN TestAccFSxOpenZFSFileSystem_throughput
=== PAUSE TestAccFSxOpenZFSFileSystem_throughput
=== RUN TestAccFSxOpenZFSFileSystem_storageType
=== PAUSE TestAccFSxOpenZFSFileSystem_storageType
=== RUN TestAccFSxOpenZFSFileSystem_weeklyMaintenanceStartTime
=== PAUSE TestAccFSxOpenZFSFileSystem_weeklyMaintenanceStartTime
=== RUN TestAccFSxOpenZFSFileSystem_automaticBackupRetentionDays
=== PAUSE TestAccFSxOpenZFSFileSystem_automaticBackupRetentionDays
=== RUN TestAccFSxOpenZFSFileSystem_kmsKeyID
=== PAUSE TestAccFSxOpenZFSFileSystem_kmsKeyID
=== RUN TestAccFSxOpenZFSFileSystem_dailyAutomaticBackupStartTime
=== PAUSE TestAccFSxOpenZFSFileSystem_dailyAutomaticBackupStartTime
=== RUN TestAccFSxOpenZFSFileSystem_throughputCapacity
=== PAUSE TestAccFSxOpenZFSFileSystem_throughputCapacity
=== RUN TestAccFSxOpenZFSFileSystem_storageCapacity
=== PAUSE TestAccFSxOpenZFSFileSystem_storageCapacity
=== RUN TestAccFSxOpenZFSFileSystem_deploymentType
=== PAUSE TestAccFSxOpenZFSFileSystem_deploymentType
=== RUN TestAccFSxOpenZFSFileSystem_multiAZ
=== PAUSE TestAccFSxOpenZFSFileSystem_multiAZ
=== RUN TestAccFSxOpenZFSFileSystem_routeTableIDs
=== PAUSE TestAccFSxOpenZFSFileSystem_routeTableIDs
=== RUN TestAccFSxOpenZFSFileSystem_deleteConfig
openzfs_file_system_test.go:1021: Environment variable AWS_FSX_CREATE_FINAL_BACKUP is not set, skipping test
--- SKIP: TestAccFSxOpenZFSFileSystem_deleteConfig (0.00s)
=== RUN TestAccFSxOpenZFSFileSystem_intelligentTiering
=== PAUSE TestAccFSxOpenZFSFileSystem_intelligentTiering
=== CONT TestAccFSxOpenZFSFileSystem_intelligentTiering
=== CONT TestAccFSxOpenZFSFileSystem_basic
=== CONT TestAccFSxOpenZFSFileSystem_routeTableIDs
=== CONT TestAccFSxOpenZFSFileSystem_multiAZ
--- PASS: TestAccFSxOpenZFSFileSystem_basic (940.74s)
=== CONT TestAccFSxOpenZFSFileSystem_deploymentType
--- PASS: TestAccFSxOpenZFSFileSystem_multiAZ (1271.73s)
=== CONT TestAccFSxOpenZFSFileSystem_storageCapacity
--- PASS: TestAccFSxOpenZFSFileSystem_routeTableIDs (1487.26s)
=== CONT TestAccFSxOpenZFSFileSystem_throughputCapacity
--- PASS: TestAccFSxOpenZFSFileSystem_intelligentTiering (1774.51s)
=== CONT TestAccFSxOpenZFSFileSystem_dailyAutomaticBackupStartTime
--- PASS: TestAccFSxOpenZFSFileSystem_storageCapacity (892.08s)
=== CONT TestAccFSxOpenZFSFileSystem_kmsKeyID
--- PASS: TestAccFSxOpenZFSFileSystem_dailyAutomaticBackupStartTime (963.00s)
=== CONT TestAccFSxOpenZFSFileSystem_automaticBackupRetentionDays
--- PASS: TestAccFSxOpenZFSFileSystem_throughputCapacity (1369.91s)
=== CONT TestAccFSxOpenZFSFileSystem_weeklyMaintenanceStartTime
--- PASS: TestAccFSxOpenZFSFileSystem_kmsKeyID (951.64s)
=== CONT TestAccFSxOpenZFSFileSystem_storageType
--- PASS: TestAccFSxOpenZFSFileSystem_automaticBackupRetentionDays (1071.53s)
=== CONT TestAccFSxOpenZFSFileSystem_throughput
--- PASS: TestAccFSxOpenZFSFileSystem_weeklyMaintenanceStartTime (991.59s)
=== CONT TestAccFSxOpenZFSFileSystem_copyTags
--- PASS: TestAccFSxOpenZFSFileSystem_deploymentType (3036.62s)
=== CONT TestAccFSxOpenZFSFileSystem_tags
--- PASS: TestAccFSxOpenZFSFileSystem_storageType (939.29s)
=== CONT TestAccFSxOpenZFSFileSystem_securityGroupIDs
--- PASS: TestAccFSxOpenZFSFileSystem_copyTags (963.93s)
=== CONT TestAccFSxOpenZFSFileSystem_rootVolume
--- PASS: TestAccFSxOpenZFSFileSystem_tags (904.35s)
=== CONT TestAccFSxOpenZFSFileSystem_disappears
--- PASS: TestAccFSxOpenZFSFileSystem_throughput (1534.77s)
=== CONT TestAccFSxOpenZFSFileSystem_diskIops
--- PASS: TestAccFSxOpenZFSFileSystem_disappears (946.91s)
--- PASS: TestAccFSxOpenZFSFileSystem_securityGroupIDs (1829.86s)
--- PASS: TestAccFSxOpenZFSFileSystem_diskIops (1014.88s)
--- PASS: TestAccFSxOpenZFSFileSystem_rootVolume (1711.64s)
PASS
ok github.com/hashicorp/terraform-provider-aws/internal/service/fsx 6529.694s |
Co-authored-by: Kit Ewbank <[email protected]>
ewbankkit
left a comment
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 🚀.
|
@tabito-hara Thanks for the contribution 🎉 👏. |
|
Warning This Issue has been closed, meaning that any additional comments are much easier for the maintainers to miss. Please assume that the maintainers will not see them. Ongoing conversations amongst community members are welcome, however, the issue will be locked after 30 days. Moving conversations to another venue, such as the AWS Provider forum, is recommended. If you have additional concerns, please open a new issue, referencing this one where needed. |
|
This functionality has been released in v6.22.1 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. Thank you! |
|
I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. |
Rollback Plan
If a change needs to be reverted, we will publish an updated version of the library.
Changes to Security Controls
Are there any changes to security controls (access controls, encryption, logging) in this pull request? If so, explain.
Description
read_cache_configurationblock to support the Intelligent-Tiering storage type foraws_fsx_openzfs_file_system.INTELLIGENT_TIERINGis already a valid value forstorage_typedue to updates in the AWS SDK for Go v2.AWS API behavior and provider implementation
When
storage_class = "INTELLIGENT_TIERING",deployment_typemust beMULTI_AZ_1. A custom diff function is added to enforce this validation.storage_capacitymust not be set.storage_capacityis provided to the AWS API only when it is explicitly specified.storage_capacityis not specified.When
read_cache_configuration.sizing_modeis set to a value other thanUSER_PROVISIONED, thesizeargument must not be sent to the AWS API. In such cases, the AWS API still returns a value even if one was provided.sizeis marked asComputedsizeonly whensizing_modeisUSER_PROVISIONEDsizeeven if the returned value isnil. (Whennilis returned,0is set)While the field name for specifying a size is
SizeGiB, it is defined assizein the schema, following the corresponding implementation ofaws_fsx_lustre_file_system.In the newly added acceptance test, all options for
sizing_modeare tested.Relations
Closes #45138
Closes #40382
References
https://docs.aws.amazon.com/fsx/latest/APIReference/API_CreateFileSystem.html#FSx-CreateFileSystem-request-StorageType
Output from Acceptance Testing