Get Hands-on with Amazon EKS - Workshop Event Series
Whether you're taking your first steps with Kubernetes or you're an experienced practitioner looking to sharpen your skills, our Amazon EKS workshop series delivers practical, real-world experience that moves you forward. Learn directly from AWS solutions architects and EKS specialists through hands-on sessions designed to build your confidence with Kubernetes. Register now and start building with Amazon EKS!
如何啟用 API Gateway REST API 的 IAM 身分驗證?
2 分的閱讀內容
0
我想啟用 AWS Identity and Access Management (IAM) 身分驗證以存取 Amazon API Gateway (API Gateway) REST API。
簡短描述
在 API Gateway 主控台中開啟 API 方法的 IAM 身分驗證。然後,使用 IAM 政策和資源政策為 API 使用者指定許可。
**注意:**若要使用其他工具或環境手動驗證傳送至 API Gateway 的請求,請使用簽章第 4 版簽署程序。如需詳細資訊,請參閱簽署請求。
在 Postman 的 Authorization (授權) 索引標籤上,執行下列操作:
對於 Type (類型),請選擇 AWS 簽章。
對於 AccessKey 和 SecretKey,請輸入 IAM 使用者的 IAM 存取金鑰 ID 和私密存取金鑰。IAM 使用者必須位於有權存取您 API 的 IAM 群組中。
在 Enter request URL (輸入請求網址) 欄位中,貼上 API 的調用網址。如果您在特定 API 資源的方法上啟用了 IAM 身分驗證,請將資源名稱附加至調用網址的末端。