1

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" enter image description here

Can anyone please help me understand what I'm doing wrong here?

Sudip
  • 647
  • 2
  • 7
  • 28
  • 1
    Please do not post images of code or error messages as they are mostly unreadable [An image of your code is not helpful](https://idownvotedbecau.se/imageofcode). Did you try the solution recommended in the error message? – Olaf Jun 05 '20 at 09:10
  • @Olaf yes, I tried the solution recommended. Sorry, it's only the access key and secret key that I have struck over. Cause its sensitive information. – Sudip Jun 06 '20 at 09:27
  • Do not add additional information as comments. Add it to your question. And what happend when you imported the module? – Olaf Jun 06 '20 at 10:06
  • @Olaf, It actually shows nothing.. No error.. nothing – Sudip Jun 07 '20 at 08:18

2 Answers2

0

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
xavier
  • 123
  • 9
0

adding -Force solved it for me where "Import-Module AWSPowerShell" still showed no effect. Import-Module AWSPowerShell -Force

Gabriel
  • 1
  • 3