AWS Powershell:-
AWS Powershell tool for windows, AWS PowerShell Tools enable you to script operations on your AWS resources from the PowerShell command line.It also helps us to automate many tasks that need to run on a specific time. We can achieve some of our customize requirement with the help of AWS PowerShell.
Prerequisites: For Setting up AWS PowerShell we need following:
- Microsoft Windows XP or Later.
- Windows PowerShell 2.0 or later
Installing AWS PowerShell:
First, download required MSi package from the following links.
Once downloading finished, follow the steps to finish the installation process.
Setting up AWS Credentials:
For configuring credentials we need Access key and Secret key.
Step 1- Open Powershell for AWS, Once you are at console use command below.
PS C:\Program Files (x86)\AWS Tools\PowerShell\AWSPowerShell> Set-AWSCredentials -AccessKey AKIAJRH4GE34E3YKCR2A -Secret Key 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 -StoreAs AMAR
Step 2- List AWS Credentials
PS C:\Program Files (x86)\AWS Tools\PowerShell\AWSPowerShell> Get-AWSCredentials -ListProfiles AMAR
Step 3- Set default AWS Credentials
PS C:\Program Files (x86)\AWS Tools\PowerShell\AWSPowerShell> Set-AWSCredentials AMAR
Step 4- Get AWS PowerShell version
PS C:\Program Files (x86)\AWS Tools\PowerShell\AWSPowerShell> Get-AWSPowerShellVersion AWS Tools for Windows PowerShell Version 3.1.62.0 Copyright 2012-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved. Amazon Web Services SDK for .NET Core Runtime Version 3.1.5.3 Copyright 2009-2015 Amazon.com, Inc. or its affiliates. All Rights Reserved.
Please check your Powershell version first. Above command may not work as expected with your version
No comments:
Post a Comment