我刚刚下载了最新版本的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窗口并重新打开它(假设它在安装之前已经打开) –