aws-tools-for-powershell: Install-AWSToolsModule results in error of Unable to find repository "AWSToolsTemp"
Expected Behavior
I would like to use this cmdlet to install the required modules and upgrade as required as part of a module setup process I’m working on. I want it to proceed with installation or else bypass without error if the module already is correctly installed.
Current Behavior
AWS.Tools.Installer\Install-AWSToolsModule -Name 'AWS.Tools.SimpleSystemsManagement', 'AWS.Tools.S3' -RequiredVersion 3.3.563.1 -Confirm:$false -CleanUp -SkipUpdate -AllowClobber
Trying to use AWS.Tools.Installer
to manage the newer modules AWS.Tools.*
results in an error message indicated:
PackageManagement\Unregister-PackageSource : Unable to find repository 'AWSToolsTemp'. Use Get-PSRepository to see all available repositories.
At C:\Users\$ENV:USERNAME\Documents\WindowsPowerShell\Modules\PowerShellGet\2.2.1\PSModule.psm1:12808 char:21
............
The property 'Name' cannot be found on this object. Verify that the property exists.
At C:\Users\$ENV:USERNAME\Documents\WindowsPowerShell\Modules\PowerShellGet\2.2.1\PSModule.psm1:11527 char:17
Your Environment
AWS.Tools.*
version3.3.563.1
AWS.Tools.Installer
version0.1.0.0
Include as many relevant details about the environment where the bug was discovered.
- Affected module (AWSPowerShell, AWSPowerShell.NetCore or AWS.Tools.*):
- Module version as reported by
Get-AWSPowerShellVersion
:Version 3.3.563.1
and Core RuntimeCore Runtime Version 3.3.103.22
- Operating System and version as reported by
$PSVersionTable
:5.1.18362.145
- PowerShell version as reported by
$PSVersionTable.PSEdition
:Desktop
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 21 (12 by maintainers)
can we please either reopen this issue or get a reference to an open issue? I’m having this issue too
The problem stlll exists on Windows in January 2021. BIG problem. Any chance on a fix?
This is on a brand new Windows VM. Nothing else but Windows installed.