- AWS Automation Cookbook
- Nikit Swaraj
- 227字
- 2021-07-02 23:00:39
Getting ready
Before setting up CodeCommit for SSH users, we need the AWS CLI installed and configured with the respective AWS account. To install the AWS CLI on our development machine, we need to perform these steps:
- We need to install python-pip and AWS CLI tools. Usually, in CentOS/RHEL, python-pip comes with EPEL (Extra Package for Enterprise Linux):
# yum install epel-release python-pip
# pip install awscli
- Once we have the awscli command installed in our system, we have to configure it using the access and secret Key, as well as the region we will use the AWS account in. If you remember, we had created a user while generating the https git credentials, but at that moment, we also downloaded another type of credentials, the secret and access key. So, we need that over here.
- Now, let's configure AWS CLI:
awsstar@awsstar:~$ aws configure
AWS Access Key ID [None]: AKIxxxxxxxxxxxxxDDA
AWS Secret Access Key [None]: b+GEuc2u3xxxxxxxxxxxxxx+av/5eK
Default region name [None]: us-east-1
Default output format [None]:
- Once the configuration is done, let's try to list the repository:
awsstar@awsstar:~$ aws codecommit list-repositories
{
"repositories": [
{
"repositoryName": "NixSrj",
"repositoryId": "73caf1e3-65a9-44bf-8c6a-a3bd3e0260b0"
},
{
"repositoryName": "ECS-POC",
"repositoryId": "62063220-b0fc-4519-9d54-896be46a7521"
},
{
"repositoryName": "terraform-Openshift",
"repositoryId": "20f88492-81bb-4068-8867-5d17a1d3ec5b"
}
]
}
- So it's showing the repository, which means the credentials are working fine and we are good to go to create a repository now.
推薦閱讀
- Hands-On Deep Learning with Apache Spark
- Mastering Matplotlib 2.x
- Seven NoSQL Databases in a Week
- JavaScript實例自學手冊
- 教父母學會上網
- 離散事件系統建模與仿真
- 群體智能與數據挖掘
- Learn CloudFormation
- Machine Learning with Apache Spark Quick Start Guide
- DevOps Bootcamp
- Unity Multiplayer Games
- Cloudera Hadoop大數據平臺實戰指南
- 筆記本電腦使用與維護
- 軟件測試設計
- INSTANT R Starter