curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
unzip awscliv2.zip
sudo ./aws/install
curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
unzip awscliv2.zip
sudo ./aws/install
which aws_completer
export PATH=/usr/local/bin:$PATH
source ~/.bash_profile
complete -C '/usr/local/bin/aws_completer' aws
aws sts get-caller-identity --output text --query Account
curl -s 169.254.169.254/latest/dynamic/instance-identity/document | jq -r '.accountId'
aws ec2 import-key-pair --key-name "public key name" --public-key-material file://"key path"
aws iam create-policy \
--policy-name ALBIngressControllerIAMPolicy \
--policy-document https://raw.githubusercontent.com/kubernetes-sigs/aws-alb-ingress-controller/${ALB_INGRESS_VERSION}/docs/examples/iam-policy.json
aws sts get-caller-identity --output text --query Arn
curl -s 169.254.169.254/latest/dynamic/instance-identity/document | jq -r '.region'
curl -s 169.254.169.254/latest/dynamic/instance-identity/document | jq -r '.availabilityZone'
aws ec2 describe-vpcs --filters Name=tag:Name,Values=eksworkshop | jq -r '.Vpcs[].VpcId'
aws ec2 describe-subnets --filters "Name=cidr-block,Values=10.11.*" --query 'Subnets[*].[CidrBlock,SubnetId,AvailabilityZone]' --output table