Where to download the Amazon FSx CLI for remote management on PowerShell


I see numerous references to an FSX CLI but I cannot find any links or information on where to download the Powershell module. I find a module on the Powershell Gallery website (AWS.Tools.FSx) related to FSx but that is part of the "AWS Tools for PowerShell" and that does not have the share management commands such as New-FSxSMBShare. Can someone please point me in the right direction to download the Amazon FSx CLI for remote management on PowerShell?

asked 2 years ago940 views
2 Answers

Link- https://docs.aws.amazon.com/fsx/latest/WindowsGuide/remote-pwrshell.html#using-rps

To start a remote PowerShell session on your file system

Connect to a compute instance that has network connectivity with your file system as a user that is a member of the delegated FSx Administrators Group that you chose when provisioning the file system.

Open a Windows PowerShell window on the compute instance.

Use the following command to open the remote session on your Amazon FSx file system. Replace FSxFileSystem-Remote-PowerShell-Endpoint with the Windows Remote PowerShell endpoint of file system that you want to administer.

PS C:\Users\delegateadmin> enter-pssession -ComputerName FSxFileSystem-Remote-PowerShell-Endpoint -ConfigurationName FsxRemoteAdmin [fs-0123456789abcdef0]: PS> If your instance is not part of the Amazon FSx AD domain, you are prompted to enter user credentials in a pop-up. If your instance is joined to the domain, you will not be asked for credentials.

You can also run Amazon FSx CLI for remote management CLI on PowerShell commands on your file system using the Invoke-Command cmdlet, described following.

The following example illustrates the syntax required when using the Invoke-Command cmdlet to run PowerShell commands on an FSx for Windows File Server file system.

PS C:\Users\delegateadmin> Invoke-Command -ComputerName amznfsxzzzzzzzz.corp.example.com -ConfigurationName FSxRemoteAdmin -scriptblock { fsx-command}

profile pictureAWS
answered 2 years ago
  • Ok. Thanks. I'm assuming based on this response that there is no way (or need) to download and install the PowerShell module on my PC? It sounds like the only way to use it is to run Invoke-Command to connect to the FSX file system and then it runs the FSX-* commands from there?


The link is here: https://docs.aws.amazon.com/fsx/latest/WindowsGuide/remote-pwrshell.html

Can you share where you were looking in the documentation, so we can add a pointer/link in that place?

answered 2 years ago
  • I must be really blind today. That is the documentation I've been looking at and I cannot find any link on that page that downloads the PowerShell module. Can you please provide a direct link to the download?

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