Troubleshoot Amazon WebS PowerShell Credential Errors

I am trying to configure AWS on my local computer through Windows PowerShell, it gives me the following error message:

    PS C:\> Set-AWSCredentials -AccessKey {AAAAAAAAAAAAAAA} -SecretKey {AAAAAAAAAAAAA} -Stor
eAs {default}
Set-AWSCredentials : Cannot evaluate parameter 'AccessKey' because its argument is specified as a script block and
there is no input. A script block cannot be evaluated without input.
At line:1 char:31
+ Set-AWSCredentials -AccessKey {AAAAAAAAAAAAAAA} -SecretKey {AAAAAAAAAAAA ...
+                               ~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : MetadataError: (:) [Set-AWSCredentials], ParameterBindingException
    + FullyQualifiedErrorId : ScriptBlockArgumentNoInput,Amazon.PowerShell.Common.SetCredentialsCmdlet

And my version of Powershell is as follows:

Major  Minor  Build  Revision
-----  -----  -----  --------
3      0      -1     -1

Does anyone know what the problem is?

thank

+4
source share
1 answer

, , , google, - , http://docs.aws.amazon.com/powershell/latest/reference/items/Set-AWSCredentials.html , , , , powershell.

Set-AWSCredentials -AccessKey AAAAAAAAAAAAAAA -SecretKey AAAAAAAAAAAAA -StoreAs default

( , )

+7

Source: https://habr.com/ru/post/1653938/


All Articles