How to provision EC2 with FSXN filesystem with terraform

0

I would like to know if there is a way to provision EC2 instances with FSxN filesystem with terraform as it can be done with AWS Console.

GBU
asked a month ago144 views
2 Answers
0

Hello there,

I understand that you would like to provision EC2 with FSx for NetApp ONTAP using Terraform.

You can choose to mount an existing FSx file system that you created previously, or you can create a new file system to mount to an instance at launch.

You may please refer the section "Mount an Amazon FSx file system at launch" in this documentation for detailed steps to do this from the EC2 console.

Please note that you can create an FSx for ONTAP volume using the Amazon FSx console, the AWS CLI, and the Amazon FSx API, in addition to the NetApp ONTAP command line interface (CLI) and REST API. For more information, please refer this documentation.

I also believe that you want to provision EC2 using Terraform and in that case, I would suggest you to refer the following third party links for more information.

Please note that AWS does not endorses third party links and the below link is shared on best effort for the research done related to this case.

[+] https://registry.terraform.io/modules/terraform-aws-modules/ec2-instance/aws/latest

[+] https://www.middlewareinventory.com/blog/terraform-aws-example-ec2/

Thank you!

AWS
SUPPORT ENGINEER
answered 21 days ago
0

Thank you for this valuable and detailed answer. Unfortunately I can't find an answer on my question. I do know how to automate FSxN deployment with terraform. I also know how to automate EC2 deployment, but I don't see an option in EC2 terraform deployment how to choose an existing FSxN filesystem, existing SVM and existing Volume, and how to configure a mount point. All those options are available in the AWS EC2 Console.

GBU
answered 21 days ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions