Starting to migrate servers to AWS. The AWS Linux AMI has the AWS CLI pre-installed and setting up is pretty easy. AWS Linux AMI is CentOS-based and has different configurations/settings with Debian-based Ubuntu.
To install the AWS CLI, follow these steps:
SSH with username ubuntu and the private key file
apt-get install python-pip
pip install awscli
Then config awscli with command:
aws configure
At this point, you will be prompted to enter the Access Key and Secret Key. It should be created in the IAM module. The keys should be re-generated from time-to-time for security purpose. Remember to attach a policy for access. By default the IAM created will have no policy attached.
Two files are created to store the config enter under the user's directory in .aws directory.
To install the AWS CLI, follow these steps:
SSH with username ubuntu and the private key file
apt-get install python-pip
pip install awscli
Then config awscli with command:
aws configure
At this point, you will be prompted to enter the Access Key and Secret Key. It should be created in the IAM module. The keys should be re-generated from time-to-time for security purpose. Remember to attach a policy for access. By default the IAM created will have no policy attached.
Two files are created to store the config enter under the user's directory in .aws directory.
Comments
Post a Comment