AWS CLI

From DevOps Notebook
Revision as of 23:01, 4 April 2020 by MilosZ (talk | contribs) (Created page with "'''AWS Command Line Interface''' snippets == EC2 via AWS CLI == === Start EC2 instance by tag === <pre> $ aws ec2 describe-instances --filters Name=tag:AutomationGroup,Value...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

AWS Command Line Interface snippets

EC2 via AWS CLI

Start EC2 instance by tag

$ aws ec2 describe-instances --filters Name=tag:AutomationGroup,Values="Start" | jq ".Reservations[].Instances[].InstanceId" -r | xargs aws ec2 start-instances --instance-ids