Amazon Web Service PowerShell Credentials setup Errors -


i trying set aws on local machine through windows powershell, gives me following error message;

    ps c:\> set-awscredentials -accesskey {aaaaaaaaaaaaaaa} -secretkey {aaaaaaaaaaaaa} -stor eas {default} set-awscredentials : cannot evaluate parameter 'accesskey' because argument specified script block , there no input. script block cannot evaluated without input. @ line:1 char:31 + set-awscredentials -accesskey {aaaaaaaaaaaaaaa} -secretkey {aaaaaaaaaaaa ... +                               ~~~~~~~~~~~~~~~~~~~~~~     + categoryinfo          : metadataerror: (:) [set-awscredentials], parameterbindingexception     + fullyqualifiederrorid : scriptblockargumentnoinput,amazon.powershell.common.setcredentialscmdlet 

and powershell version following;

major  minor  build  revision -----  -----  -----  -------- 3      0      -1     -1 

anyone knows problem is?

thanks

it looks need drop brackets code, documentation amazon comes first in google includes them reason if check out http://docs.aws.amazon.com/powershell/latest/reference/items/set-awscredentials.html , examples near bottom you'll see function expecting them in string other powershell cmdlet.

set-awscredentials -accesskey aaaaaaaaaaaaaaa -secretkey aaaaaaaaaaaaa -storeas default 

should trick (if there spaces in make sure wrap string in quotes)


Comments

Popular posts from this blog

java - Jasper subreport showing only one entry from the JSON data source when embedded in the Title band -

mapreduce - Resource manager does not transit to active state from standby -

serialization - Convert Any type in scala to Array[Byte] and back -