Closed elliott-alt closed 3 years ago
Hi @elliott-alt,
Good afternoon.
Could you please try the command Get-Module -Name AWS.Tools.* -ListAvailable
and see if it displays the available AWS.Tools.*
module(s)? Also, let us know the output of Get-S3Bucket
command.
Thanks, Ashish
It shows that it's not installed. I could tell something was weird from the Install-AWSToolsModule
command because it did not try to install AWS.Tools.Common
.
PS C:\Windows\system32> Get-Module -Name AWS.Tools.* -ListAvailable
Directory: C:\Program Files\WindowsPowerShell\Modules
ModuleType Version Name ExportedCommands
---------- ------- ---- ----------------
Script 1.0.2.0 AWS.Tools.Installer {Uninstall-AWSToolsModule, Install-AWSToolsModule, Update-...
PS C:\Windows\system32> Get-S3Bucket
Get-S3Bucket : The term 'Get-S3Bucket' is not recognized as the name of a cmdlet, function, script file, or operable
program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
+ Get-S3Bucket
+ ~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (Get-S3Bucket:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
Hi @elliott-alt,
Good morning.
Please advise if this is still an issue. Also, could you try running PowerShell console as Administrator, OR, try it on a new machine? Here's is the output from my execution:
PS D:\Users\testuser> Install-Module -Name AWS.Tools.Installer
Untrusted repository
You are installing the modules from an untrusted repository. If you trust this repository, change its
InstallationPolicy value by running the Set-PSRepository cmdlet. Are you sure you want to install the modules from
'PSGallery'?
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "N"): Y
PS D:\Users\testuser> Install-AWSToolsModule AWS.Tools.S3 -Verbose
VERBOSE: [Install-AWSToolsModule] ConfirmPreference=High WhatIfPreference=False VerbosePreference=Continue Force=False Name=(AWS.Tools.S3) RequiredVersion= SkipUpdate=False CleanUp=False
VERBOSE: [Find-AWSToolsModule] ConfirmPreference=High WhatIfPreference=False VerbosePreference=Continue Name=(AWS.Tools.S3)
VERBOSE: [Find-AWSToolsModule] End
VERBOSE: [Install-AWSToolsModule] Installing AWS Tools version 4.1.11.0
VERBOSE: [Install-AWSToolsModule] Searching installed modules
VERBOSE: [Install-AWSToolsModule] Removing already installed modules from the. Final list of modules to install: (AWS.Tools.S3)
Confirm
Are you sure you want to perform this action?
Performing the operation "Install-AWSToolsModule" on target "AWS Tools version 4.1.11.0".
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"): Y
VERBOSE: [Install-AWSToolsModule] Create folder for temporary repository D:\Users\testuser\AppData\Local\Temp\3z41cs5s.j3y
VERBOSE: [Install-AWSToolsModule] Registering temporary repository AWSToolsTemp
VERBOSE: [Install-AWSToolsModule] Downloading modules to temporary repository
VERBOSE: [Install-AWSToolsModule] Downloading modules (AWS.Tools.S3)
VERBOSE: [Install-AWSToolsModule] Downloading module AWS.Tools.S3 to D:\Users\testuser\AppData\Local\Temp\3z41cs5s.j3y
VERBOSE: [Get-AWSToolsModuleDependenciesAndValidate] ConfirmPreference=None WhatIfPreference=False VerbosePreference=Continue Name=AWS.Tools.S3 Path=D:\Users\testuser\AppData\Local\Temp\3z41cs5s.j3y\AWS.Tools.S3.4.1.11.0.nupkg
VERBOSE: [Get-AWSToolsModuleDependenciesAndValidate] Manifest signature correctly validated
VERBOSE: [Get-AWSToolsModuleDependenciesAndValidate] Found dependency AWS.Tools.Common
VERBOSE: [Get-AWSToolsModuleDependenciesAndValidate] End
VERBOSE: [Install-AWSToolsModule] Downloading module AWS.Tools.Common to D:\Users\testuser\AppData\Local\Temp\3z41cs5s.j3y
VERBOSE: [Get-AWSToolsModuleDependenciesAndValidate] ConfirmPreference=None WhatIfPreference=False VerbosePreference=Continue Name=AWS.Tools.Common Path=D:\Users\testuser\AppData\Local\Temp\3z41cs5s.j3y\AWS.Tools.Common.4.1.11.0.nupkg
VERBOSE: [Get-AWSToolsModuleDependenciesAndValidate] Manifest signature correctly validated
VERBOSE: [Get-AWSToolsModuleDependenciesAndValidate] End
VERBOSE: [Install-AWSToolsModule] Installing modules (AWS.Tools.S3)
Installing module AWS.Tools.S3 version 4.1.11.0
VERBOSE: [Install-AWSToolsModule] Modules install complete
VERBOSE: [Install-AWSToolsModule] Unregistering temporary repository AWSToolsTemp
VERBOSE: [Install-AWSToolsModule] Delete repository folder D:\Users\testuser\AppData\Local\Temp\3z41cs5s.j3y
VERBOSE: [Install-AWSToolsModule] End
PS D:\Users\testuser> Get-Module -Name AWS.Tools.* -ListAvailable
Directory: D:\Users\testuser\Documents\PowerShell\Modules
ModuleType Version PreRelease Name PSEdition ExportedCommands
---------- ------- ---------- ---- --------- ----------------
Binary 4.1.11.0 AWS.Tools.Common Core,Desk {Clear-AWSHistory, Set-AWSHistoryConfiguration, Init…
Script 1.0.2.1 AWS.Tools.Installer Core,Desk {Uninstall-AWSToolsModule, Install-AWSToolsModule, U…
Binary 4.1.11.0 AWS.Tools.S3 Core,Desk {Add-S3PublicAccessBlock, Copy-S3Object, Get-S3ACL, …
Thanks, Ashish
I was already running as admin, and I tried reinstalling a few times and rebooting. Anyway, I'm not sure what changed but now it's working fine.
Description
I tried to install for the first time on Windows 10. There is no error message but the modules are not installed.
Reproduction Steps
Install-Module AWS.Tools.Installer
succeedsInstall-AWSToolsModule AWS.Tools.S3
(or any other module) failsLogs
This is the result trying to install any service module:
This also fails using
Install-Module
. Here is the debug output.Get-Module
shows only the installer, no services have been installed. Commands likeGet-S3Bucket
don't work.Environment