terraform-provider-aws
terraform-provider-aws copied to clipboard
[Enhancement]: Floating IP address range outside the VPC configuration for FSx ONTAP
Description
Amazon FSx for ONTAP recommends choosing an endpoint IP address range that’s within VPC’s IP address range to simplify your networking setup, especially when accessing your data from other AWS services or other networks (on-premises networks or peered networks in AWS).
I'm trying to find this configuration option in https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/fsx_ontap_file_system#endpoint, but with no success.
Especially I'm interested in the Floating IP address range outside the VPC configuration and the requirement is to support all possible Endpoint IP Range configurations shown in the Fsx AWS Console. See attached file.

Affected Resource(s) and/or Data Source(s)

Potential Terraform Configuration
No response
References
No response
Would you like to implement a fix?
None
Community Note
Voting for Prioritization
- Please vote on this issue by adding a 👍 reaction to the original post to help the community and maintainers prioritize this request.
- Please see our prioritization guide for information on how we prioritize.
- Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request.
Volunteering to Work on This Issue
- If you are interested in working on this issue, please leave a comment.
- If this would be your first contribution, please review the contribution guide.
@justinretzolk any idea how to get a feedback when this functionality can be implemented?
I don't think there are changes needed to the terraform provider to implement this? Just set your endpoint_ip_address_range to something outside your VPC: (https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/fsx_ontap_file_system#endpoint_ip_address_range)
Note that if you do it this way you'll have to add transit gateway config/routes.
We recently deployed a multi-AZ FSx and used an unallocated IP range within the VPC for the endpoints, but note this still requires setting the route_table_ids param to work without making TGW changes: https://docs.aws.amazon.com/fsx/latest/ONTAPGuide/unable-to-access.html#subnet-route-tables
Sorry if this isn't helpful, just sharing my experience with this resource, best of luck.
Re-reading your post, I think I'm mistaken that there is missing functionality to implement the Floating option, my bad.
@joshtrutwin really apologize, but I need clarification. You are saying that possible to deploy FSxN with all 3 options by setting endpoint_ip_address_range or there is something missing and it should be implemented?
I'm honestly unsure @buslovitch - those 3 options in the AWS console don't seem to have direct API equivalent https://docs.aws.amazon.com/fsx/latest/APIReference/API_CreateFileSystemOntapConfiguration.html#FSx-Type-CreateFileSystemOntapConfiguration-EndpointIpAddressRange
It may be possible to do all 3 options:
option #1 (Unallocated IP from your VPC) - specify an endpoint_ip_address_range param using the unallocated space in your VPC CIDR (if you have any unallocated) option #2 (floating IP outside your VPC) - I think this is the behavior you would get by NOT specifying the IP range:
endpoint_ip_address_range - (Optional) Specifies the IP address range in which the endpoints to access your file system will be created. By default, Amazon FSx selects an unused IP address range for you from the 198.19. range.*
This again requires TGW changes if multi-AZ per: https://docs.aws.amazon.com/fsx/latest/ONTAPGuide/access-environments.html "No additional Transit Gateway configuration is required for Single-AZ file systems or Multi-AZ file systems with an EndpointIPAddressRange that's within your VPC's IP address range."
Option #3 - you specify the endpoint_ip_address_range param
@joshtrutwin thank you very much for all your comments. We'll test it to get a full confidence. Again, much appreciate your help.
Good luck, it's a bit tricky to get everything set up but once it is done it works quite well.
Specifying the [endpoint_ip_address_range] which is same as subnet gives an error.
Specifying the [endpoint_ip_address_range] which is same as subnet gives an error.
Agreed we have the same issue with a customer. How can we specifiy this in each senario to make sure it works correctly for the customer.
Unfortunately, this issue as presented is conflating different asks. It would be helpful if the author/OP could restate the issue and use the criteria we ask for when submitting a bug:
- Affected resource: aws_fsx_ontap_file_system
- Expected behavior: I am attempting to do X. I expected the result to be Y.
- Actual behavior: When I use this sample terraform configurations, I get this result Z.
- Relevant Output Snipplet
- Sample Terraform Configuration Files
- Steps to Reproduce