This commit is contained in:
gurkenhabicht 2024-02-19 22:51:32 +01:00
parent 1f86484039
commit 6a5836f888
1 changed files with 1 additions and 1 deletions

View File

@ -710,7 +710,7 @@ aws ec2 describe-instances --query 'Reservations[*].Instances[*].Tags[?Key==`Nam
List all InstanceIds in the account via aws cli.
```sh
list=$(aws ec2 describe-instances --region <region_name> --query Reservations[].Instances.InstanceId --output json --profile PROFILENAME) | jq .[] -r
list=$(aws ec2 describe-instances --region <region_name> --query Reservations[].Instances.InstanceId --output json --profile PROFILENAME | jq .[] -r)
```
Get user data like cloud-init scripts from the instances via aws cli.