How to set up AWS credentials in AWS Powershell?

0 votes

I just downloaded the latest version of AWS Powershell and tried this and i am getting an error.

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>

So, what i have done wrong and what does the error means?

Nov 22, 2018 in AWS by datageek
• 2,940 points
251 views

1 answer to this question.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
0 votes

First, of all the tools installed to a folder structure compliant with the auto-import support in PowerShell version 3 or higher, so Import-Module is not needed.

It does however require that the PSModulePath update the installer performs takes effect, and we've noticed that on some systems you need to reboot after install.

Looking at PSModulePath you should see something like this (excuse wrapping):

PS C:\> ls env:PSModulePath | fl

Name  : PSModulePath
Value : C:\Users\userid\Documents\WindowsPowerShell\Modules;C:\Program
        Files\WindowsPowerShell\Modules;C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules\;C:\Program Files (x86)\AWS Tools\PowerShell\

If so, try restarting your machine and then open a shell prompt and see if Set-AWSCredentialsbecomes available.

Hope this helped!

answered Nov 22, 2018 by Archana
• 5,360 points

Related Questions In AWS

0 votes
1 answer

How to set up a SPF(Sender Policy Framework) for AWS EC2 instance?

Setting up a SPF record is pretty ...READ MORE

answered Aug 16, 2018 in AWS by Archana
• 4,090 points
118 views
0 votes
1 answer

How to set-up DynamoDB trigger using AWS Lambda?

Well this code worked for me. You ...READ MORE

answered Aug 20, 2018 in AWS by Archana
• 4,090 points
380 views
+1 vote
1 answer
0 votes
1 answer

Deploy Docker Containers from Docker Cloud

To solve this problem, I followed advice ...READ MORE

answered Sep 3, 2018 in AWS by Priyaj
• 56,140 points
80 views
+13 votes
2 answers
0 votes
1 answer

How to set up rules for Application Load Balancer?

You can configure rules for each of ...READ MORE

answered Nov 19, 2018 in AWS by Archana
• 5,360 points
23 views

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.