Accessing AWS via CLI
There are two types of ways to access the AWS services and resources. One is through the AWS console, and we have discussed the process on how to sign on; and the second way is through the CLI/API calls. For accessing via CLI, you need an access key and a secret access key for programmatic access. You can check the access key associated with a specific IAM user using Get-IAMAccessKey
; and you can create a new access key using New-IAMAccessKey
:
PS C:\> Get-IAMAccessKey -UserName Ramesh PS C:\> New-IAMAccessKey -UserName Ramesh

Note that this is the only time you can see the SecretAccessKey
displayed on the screen. You cannot retrieve it later. Save it securely. If you miss it, then you need to create a new one and deactivate the old one. Recycling and maintaining the access key falls under customer responsibilities. Now, you can use the access key and the secret access key for any programmatic access. It will assume the same policies that you assigned earlier to...