AWS CLI: Difference between revisions

From Chorke Wiki
Jump to navigation Jump to search
Line 67: Line 67:
|valign='top'|
|valign='top'|
* [https://docs.aws.amazon.com/cli/latest/reference/ec2/describe-vpcs.html AWS » CLI » EC2 » <code>describe-vpcs</code>]
* [https://docs.aws.amazon.com/cli/latest/reference/ec2/describe-vpcs.html AWS » CLI » EC2 » <code>describe-vpcs</code>]
* [https://awspolicygen.s3.amazonaws.com/policygen.html AWS » S3 » Policy Generator]
* [https://docs.aws.amazon.com/cli/latest/reference/lightsail/ AWS » CLI » <code>lightsail</code>]
* [https://docs.aws.amazon.com/cli/latest/userguide/getting-started-install.html AWS » CLI » Install]
* [https://docs.aws.amazon.com/cli/latest/userguide/getting-started-install.html AWS » CLI » Install]
* [https://docs.aws.amazon.com/cli/latest/ AWS » CLI » Docs]
* [https://docs.aws.amazon.com/cli/latest/ AWS » CLI » Docs]
* [https://docs.aws.amazon.com/cli/latest/reference/s3/ AWS » CLI » S3]
* [https://docs.aws.amazon.com/cli/latest/reference/eks/ AWS » CLI » <code>eks</code>]
* [https://docs.aws.amazon.com/cli/latest/reference/ec2/ AWS » CLI » <code>ec2</code>]
* [https://docs.aws.amazon.com/cli/latest/reference/ecr/ AWS » CLI » <code>ecr</code>]
* [https://docs.aws.amazon.com/cli/latest/reference/ecs/ AWS » CLI » <code>ecs</code>]
* [https://docs.aws.amazon.com/cli/latest/reference/s3/ AWS » CLI » <code>s3</code>]
* [[AWS]]
* [[AWS]]


Line 82: Line 86:
|-
|-
|valign='top'|
|valign='top'|
* [https://awspolicygen.s3.amazonaws.com/policygen.html AWS » S3 » Policy Generator]
* [https://superuser.com/questions/279986/ AWS » S3 » cURL Upload]
* [https://superuser.com/questions/279986/ AWS » S3 » cURL Upload]
* [https://stackoverflow.com/questions/44751574/ AWS » S3 » cURL Route]
* [https://stackoverflow.com/questions/44751574/ AWS » S3 » cURL Route]

Revision as of 05:03, 18 July 2024

wget -cq https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip -P ${HOME}/Downloads
unzip -q ${HOME}/Downloads/awscli-exe-linux-x86_64.zip -d ${HOME}/Downloads/
rm -rf   ${HOME}/Downloads/awscli-exe-linux-x86_64.zip
sudo     ${HOME}/Downloads/aws/install
rm -rf   ${HOME}/Downloads/aws

Playground

cat << INI | tee -a ${HOME}/.aws/config >/dev/null
[default]
region = ap-southeast-1
output = table

INI
cat << INI | tee -a ${HOME}/.aws/credentials >/dev/null
[academia]
aws_access_key_id = AKIBVWTF7RISAULV8Q6Q
aws_secret_access_key = w2JVkDIE9zRTIP/S4m7Mm4cWKlFEYlzg1iGzfCnj

INI
cat << INI | tee -a ${HOME}/.aws/config >/dev/null
[profile academia]
region = ap-southeast-1
output = json

INI

export AWS_DEFAULT_PROFILE=academia
export AWS_PROFILE=academia
aws ec2 describe-vpcs
aws s3 ls
aws configure --profile academia
aws configure help
aws configure list
aws configure
cat ~/.aws/credentials
cat ~/.aws/config

References