-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathc.txt
More file actions
32 lines (24 loc) · 966 Bytes
/
c.txt
File metadata and controls
32 lines (24 loc) · 966 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
aws ec2 describe-instances --query "Reservations[*].Instances[*].[InstanceId,State.Name]" --output table && aws s3 ls
-------------------------------------------------------------------------------------------------------------------------
aws ec2 create-key-pair --key-name my-key --query 'KeyMaterial' --output text > my-key.pem
----------------------------------
aws ec2 run-instances \
--image-id ami-0c02fb55956c7d316 \
--instance-type t2.micro \
--key-name my-key \
--security-groups default \
--count 1
-------------------------------
aws ec2 describe-instances --query "Reservations[*].Instances[*].[InstanceId,State.Name]" --output table
-----------------------------------------
aws ec2 describe-instances --region us-east-1
------------------------------------------
aws configure
-------------
Access key
Secret key
Region (e.g., us-east-1)
Output format (e.g., json)
---------------------------------
aws s3 mb s3://my-test-bucket-987
aws s3 ls