AWS CLI: Difference between revisions

From Chorke Wiki
Jump to navigation Jump to search
Line 78: Line 78:


|valign='top'|
|valign='top'|
* [https://docs.aws.amazon.com/cli/latest/reference/codecommit/ AWS » CLI » <code>codecommit</code>]
* [https://docs.aws.amazon.com/cli/latest/reference/cloudwatch/ AWS » CLI » <code>cloudwatch</code>]
* [https://docs.aws.amazon.com/cli/latest/reference/cloudfront/ AWS » CLI » <code>cloudfront</code>]
* [https://docs.aws.amazon.com/cli/latest/reference/eks-auth/ AWS » CLI » <code>eks-auth</code>]
* [https://docs.aws.amazon.com/cli/latest/reference/eks-auth/ AWS » CLI » <code>eks-auth</code>]
* [https://docs.aws.amazon.com/cli/latest/reference/account/ AWS » CLI » <code>account</code>]
* [https://docs.aws.amazon.com/cli/latest/reference/route53/ AWS » CLI » <code>route53</code>]
* [https://docs.aws.amazon.com/cli/latest/reference/route53/ AWS » CLI » <code>route53</code>]
* [https://docs.aws.amazon.com/cli/latest/reference/s3api/ AWS » CLI » <code>s3api</code>]
* [https://docs.aws.amazon.com/cli/latest/reference/s3api/ AWS » CLI » <code>s3api</code>]
Line 86: Line 90:


|valign='top'|
|valign='top'|
* [https://docs.aws.amazon.com/cli/latest/reference/importexport/ AWS » CLI » <code>importexport</code>]
* [https://docs.aws.amazon.com/cli/latest/reference/imagebuilder/ AWS » CLI » <code>imagebuilder</code>]
* [https://docs.aws.amazon.com/cli/latest/reference/discovery/ AWS » CLI » <code>discovery</code>]
* [https://docs.aws.amazon.com/cli/latest/reference/inspector/ AWS » CLI » <code>inspector</code>]
* [https://docs.aws.amazon.com/cli/latest/reference/freetier/ AWS » CLI » <code>freetier</code>]
* [https://docs.aws.amazon.com/cli/latest/reference/grafana/ AWS » CLI » <code>grafana</code>]
* [https://docs.aws.amazon.com/cli/latest/reference/glacier/ AWS » CLI » <code>glacier</code>]
* [https://docs.aws.amazon.com/cli/latest/reference/events/ AWS » CLI » <code>events</code>]
* [https://docs.aws.amazon.com/cli/latest/reference/iam/ AWS » CLI » <code>iam</code>]
* [https://docs.aws.amazon.com/cli/latest/reference/es/ AWS » CLI » <code>es</code>]


|-
|-

Revision as of 06:13, 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