User Tools

Site Tools


wiki:aws_cli_commands

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
wiki:aws_cli_commands [2024/10/28 08:55] – created antisawiki:aws_cli_commands [2025/03/26 14:36] (current) – add Iterate over all aws profiles and run command antisa
Line 17: Line 17:
         aws eks describe-cluster --name "$cluster" --region "$region" --query "cluster.{Name:name, Status:status, Version:version, Endpoint:endpoint}" --output table         aws eks describe-cluster --name "$cluster" --region "$region" --query "cluster.{Name:name, Status:status, Version:version, Endpoint:endpoint}" --output table
     done     done
-done+  done
  
 +===== Iterate over all aws profiles and run command =====
 +You need to have [[https://github.com/99designs/aws-vault|aws-vault]] set up first for this to work.
 +
 +Example of listing kinesis streams:
 +  for profile in $(aws configure list-profiles);do echo "========= $profile =========";AWS_PAGER="" aws-vault exec $profile -- aws kinesis list-streams;done
  
 ====== Tested on ====== ====== Tested on ======
Line 25: Line 30:
  
 ====== See also ====== ====== See also ======
 +  * [[wiki:aws_cli_2fa|AWS CLI with 2FA]]
 ====== References ====== ====== References ======
  
  
wiki/aws_cli_commands.1730105741.txt.gz · Last modified: by antisa

Except where otherwise noted, content on this wiki is licensed under the following license: CC0 1.0 Universal
CC0 1.0 Universal Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki