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
Post a Comment