# 存取 AWS Container Registry ## 說明 > 使用AWS CLI服務,將完成的服務推送至Amazon Elastic Container Registry儲存庫中。 ## 安裝 AWS CLI >說明如何快速設定 AWS Command Line Interface (AWS CLI) 用於與 AWS 互動的基本設定。這些包含您的安全登入資料、預設輸出格式和預設 AWS 區域。 * 載點 : * Windwos x64: [網址](https://s3.amazonaws.com/aws-cli/AWSCLI64.msi) * Windwos x32: [網址](https://s3.amazonaws.com/aws-cli/AWSCLI32.msi) * Linux: `pip install awscli` ## 配置存取金鑰 >AWS CLI 會將您使用 aws configure 指定的敏感登入資料資訊存放在名為 credentials 的本機檔案中,而此檔案位於主目錄中名為 .aws 的資料夾。您使用 aws configure 指定的較不敏感組態選項,則存放在名為 config 的本機檔案中。 :::info ARN: ************************** ::: * cmd中輸入 `aws configure --profile va-ecr` * AWS Access Key ID [存取金鑰ID]: AKIAXAL********* * AWS Secret Access Key [私密存取金鑰]: ud**************************** * Default region name [區域]: ap-east-1 * Default output format [輸出檔案類型]: json [![](https://hackmd.io/_uploads/rJbMJd18s.png)](https://hackmd.io/_uploads/rJbMJd18s.png)