Reputation: 687
I want to run some AWS commands using PowerShell scripts in windows. I went ahead and ran this below command.
Install-Module AWSPowerShell
The module got installed without any error. But I'm getting below error when I try to do "Set-AWSCredentials"
Can anyone please help me understand what I'm doing wrong here?
Upvotes: 1
Views: 4837
Reputation: 1
adding -Force solved it for me where "Import-Module AWSPowerShell" still showed no effect.
Import-Module AWSPowerShell -Force
Upvotes: 0
Reputation: 123
I think you should try to import the module installed. Almost you can use the following command Get-Module to check if the module is imported and installed in the current session of powershell execution.
Import-Module AWSPowerShell
Get-Module -ListAvailable
Upvotes: 0