awscli_tips's profile picture. Showing tips and tricks to get the most out of the AWS CLI. Written by @ArjenSchwarz as part of @ignoreme_site. Not associated with @awscloud

AWSCLI Tips

@awscli_tips

Showing tips and tricks to get the most out of the AWS CLI. Written by @ArjenSchwarz as part of @ignoreme_site. Not associated with @awscloud

The JMESPath --query syntax for the CLI is very powerful and lets you combine values from different levels into a single output. It even lets you filter by key values and filter them up. Example code for basic information about your EC2 instances at github.com/ig-nore-me/aws…

awscli_tips's tweet image. The JMESPath --query syntax for the CLI is very powerful and lets you combine values from different levels into a single output. It even lets you filter by key values and filter them up. Example code for basic information about your EC2 instances at github.com/ig-nore-me/aws…
awscli_tips's tweet image. The JMESPath --query syntax for the CLI is very powerful and lets you combine values from different levels into a single output. It even lets you filter by key values and filter them up. Example code for basic information about your EC2 instances at github.com/ig-nore-me/aws…

Some commands limit what you can filter by. For example, ec2 describe-vpc-peering-connections only lets you filter by either the requester VPC OR the accepter VPC. Using a --query allows you to work around this and search for either in one command. Code at github.com/ig-nore-me/aws…

awscli_tips's tweet image. Some commands limit what you can filter by. For example, ec2 describe-vpc-peering-connections only lets you filter by either the requester VPC OR the accepter VPC. Using a --query allows you to work around this and search for either in one command. Code at github.com/ig-nore-me/aws…
awscli_tips's tweet image. Some commands limit what you can filter by. For example, ec2 describe-vpc-peering-connections only lets you filter by either the requester VPC OR the accepter VPC. Using a --query allows you to work around this and search for either in one command. Code at github.com/ig-nore-me/aws…

Did you know that you can now authenticate to your #EKS cluster using only the AWS CLI? You no longer need any extra tools! Read the full announcement here aws.amazon.com/about-aws/what…

awscli_tips's tweet image. Did you know that you can now authenticate to your #EKS cluster using only the AWS CLI? You no longer need any extra tools! Read the full announcement here aws.amazon.com/about-aws/what…
awscli_tips's tweet image. Did you know that you can now authenticate to your #EKS cluster using only the AWS CLI? You no longer need any extra tools! Read the full announcement here aws.amazon.com/about-aws/what…
awscli_tips's tweet image. Did you know that you can now authenticate to your #EKS cluster using only the AWS CLI? You no longer need any extra tools! Read the full announcement here aws.amazon.com/about-aws/what…

Yesterday's vpcbyname can be used in many functions, for example one that gives you an overview of your subnets. Using the built-in JMESPath syntax we can even use the --query operator to sort this by available IPs. Code at github.com/ig-nore-me/aws…

awscli_tips's tweet image. Yesterday's vpcbyname can be used in many functions, for example one that gives you an overview of your subnets. Using the built-in JMESPath syntax we can even use the --query operator to sort this by available IPs. 
Code at github.com/ig-nore-me/aws…
awscli_tips's tweet image. Yesterday's vpcbyname can be used in many functions, for example one that gives you an overview of your subnets. Using the built-in JMESPath syntax we can even use the --query operator to sort this by available IPs. 
Code at github.com/ig-nore-me/aws…

Many cli commands require the ID of your VPC, but that is hard to remember (especially now that they're 17 random characters). Why not use a function to call it based on the Name tag? The code for vpcbyname is at github.com/ig-nore-me/aws…

awscli_tips's tweet image. Many cli commands require the ID of your VPC, but that is hard to remember (especially now that they're 17 random characters). Why not use a function to call it based on the Name tag? The code for vpcbyname is at github.com/ig-nore-me/aws…
awscli_tips's tweet image. Many cli commands require the ID of your VPC, but that is hard to remember (especially now that they're 17 random characters). Why not use a function to call it based on the Name tag? The code for vpcbyname is at github.com/ig-nore-me/aws…

When you have an API key, but all access is MFA only, you can get an authorised STS token using a combination of aws iam list-mfa-devices and aws sts get-session-token. Code at github.com/ig-nore-me/aws… #awstips

awscli_tips's tweet image. When you have an API key, but all access is MFA only, you can get an authorised STS token using a combination of aws iam list-mfa-devices and aws sts get-session-token. Code at github.com/ig-nore-me/aws… #awstips
awscli_tips's tweet image. When you have an API key, but all access is MFA only, you can get an authorised STS token using a combination of aws iam list-mfa-devices and aws sts get-session-token. Code at github.com/ig-nore-me/aws… #awstips

Hello! This account's purpose is to provide useful AWS CLI snippets people can use, which will start showing up over the next days.


Loading...

Something went wrong.


Something went wrong.