Getting Started (AWS PowerShell)
Jump to navigation
Jump to search
Setup Credentials
PowerShell Core can't store credentials securely by itself (the encryption used by Windows PowerShell is dependant on Windows DLL's, the Secure String object is not available in PowerShell Core), therefore AWS provide a method of storing AWS credentials securely for use which replicates how you'd do this in Windows PowerShell whereby credentials are stored in an encrypted file that can only be decrypted by the logged in user.. You need the Access Key ID and Secret for your account
The following command stores your credentials in the default profile, meaning that they will be used for operations where credentials are required, unless you specify a different profile of credentials to use
Set-AWSCredential -AccessKey <your-access-key> -SecretKey <your-secret> -StoreAs default