- AWS Tools for PowerShell 6
- Ramesh Waghmare
- 189字
- 2021-07-15 17:09:23
The AWS credential search order
AWS Tools stores the credential in the C:\Users\username>\AppData\Local\AWSToolkit\RegisteredAccounts.json file. This files stores your access and secret access keys in an encrypted format. Even if you copy this file to a different computer, you cannot use it. This is the first file that AWS Tools for PowerShell searches on the Windows platform for the AWS credentials. You can also write the credentials to a different file as follows:
PS C:\> Set-AWSCredentials -AccessKey {xx} -SecretKey {xx} -StoreAs {ProfileName} -ProfilesLocation c:\AWSTools\MyCredential
By default, on a Windows platform, AWS Tools for Windows PowerShell modules read profiles from the file C:\Users<userid>\.aws\credentials. Don't get confused here. I specifically mentioned AWS Tools for Windows PowerShell and not AWS Tools for PowerShell Core. AWS Tools for PowerShell Core still store credentials in the location, C:\Users\username>\AppData\Local\AWSToolkit\RegisteredAccounts.json. On Linux, the file is at ~/.aws/credentials. Here are the high-level steps for the credential search:
- Literal credentials in the cmdlet
- Profile names or profile locations
- Credentials specified by the credential parameter
- PowerShell session profiles
- Default profiles set in PowerShell for the AWS access
- The EC2 instance credential if EC2 instance is configured for an IAM role
- Java高并發核心編程(卷2):多線程、鎖、JMM、JUC、高并發設計模式
- SQL學習指南(第3版)
- C# Programming Cookbook
- Rust編程從入門到實戰
- Programming ArcGIS 10.1 with Python Cookbook
- 深入淺出RxJS
- Hands-On Enterprise Automation with Python.
- 物聯網系統架構設計與邊緣計算(原書第2版)
- Instant Apache Camel Messaging System
- AutoCAD基礎教程
- Java EE輕量級解決方案:S2SH
- C語言編程魔法書:基于C11標準
- 開發者測試
- MySQL數據庫應用技術及實戰
- 自己動手做智能產品:嵌入式JavaScript實現