terraform-provider-aws
terraform-provider-aws copied to clipboard
fix: update validation for throughput capacity
Description
Update the validation for the argument throughput_capacity
when creating an aws_fsx_windows_file_system
resource.
The current validation allows values between 8 and 2048. Actually,
- only a small subset of values inside this range is allowed
- larger values are also fine in some regions.
Here an example output when a value of 2040 is specified:
Error: creating FSx for Windows File Server File System: operation error FSx: CreateFileSystem, https response error StatusCode: 400, RequestID: 39b44ab9-daca-46f1-a6c0-ec8a64c639d1, BadRequest: Invalid desired throughput capacity value provided: 2040 MB/s. Please refer to the performance guide (https://docs.aws.amazon.com/fsx/latest/WindowsGuide/performance.html) when selecting a value.
The documentation is updated and no longer mentions in power of 2 increments
as this in no longer true for values > 2048.
Relations
Closes #40289
References
- Announcement
-
FSx Windows - Performance overview
mentioning region specific maximum value for the throughput capacity.Amazon FSx file systems provide up to 2 GB/s and 80,000 IOPS in all AWS Regions where Amazon FSx is available, and 12 GB/s of throughput and 400,000 IOPS in US East (N. Virginia), US West (Oregon), US East (Ohio), Europe (Ireland), Asia Pacific (Tokyo), and Asia Pacific (Singapore).
Output from Acceptance Testing
TBD