我剛剛下載了最新版本的AWS Powershell,並嘗試了這一點:在我不記得任何問題之前。現在我收到此錯誤消息:如何在AWS PowerShell中設置AWS憑證
PS C:\Program Files (x86)\AWS Tools\PowerShell\AWSPowerShell> Set-AWSCredentials -AccessKey xxxxxxxx -SecretKey xxxxxxx -StoreAs xxxx
Set-AWSCredentials : The term 'Set-AWSCredentials' 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
+ Set-AWSCredentials -AccessKey xxxxxxx -SecretKey xxxxx
+ ~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (Set-AWSCredentials:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
PS C:\Program Files (x86)\AWS Tools\PowerShell\AWSPowerShell>
有沒有人有任何想法我可能會做錯什麼?有一些語法:-(
感謝
您可能需要使用'Import-Module'來導入aws模塊 –
我以前從未導入過任何模塊。你能給我更多的細節嗎?請注意,我剛剛下載並安裝了AWS powershell,並且正在使用AWS powershell。謝謝 – Alan2
如果您剛剛安裝了AWS工具包,您可以嘗試關閉當前的PowerShell窗口並重新打開它(假設它在安裝之前已經打開) –