【发布时间】:2021-02-10 23:06:11
【问题描述】:
我刚刚下载了最新版本的 AWS Powershell 并尝试了这个:之前我不记得有任何问题。现在我收到此错误消息:
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。谢谢
-
如果您刚刚安装了 AWS 工具包,您可以尝试关闭当前的 powershell 窗口并重新打开它(假设它在安装之前已经打开。)
-
@Alan 您知道您之前使用的是哪个版本的 AWS PowerShell?
-
我上次使用 AWS PowerShell 大约是两个月前,那是最近一次。我想做的就是设置凭据:-(我现在在两台机器上尝试过。到目前为止,我对 AWS Powershell 的体验还不是很好。希望我不必这么说,只是我的经验。跨度>
标签: powershell amazon-web-services amazon-s3 aws-powershell