Skip to content

Commit 84dfe7c

Browse files
committed
Add README.md and tutorial walkthrough for script-only tutorials
1 parent 195bb15 commit 84dfe7c

10 files changed

Lines changed: 220 additions & 0 deletions

File tree

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# Ec2 Describe Instances
2+
3+
A read-only script that queries Ec2 resources and displays information.
4+
5+
## Running
6+
7+
```bash
8+
bash ec2-describe-instances.sh
9+
```
10+
11+
## What it does
12+
13+
1. Listing all instances"; aws ec2 describe-instances --query 'Reservations[].Instances[].{Id:InstanceId,Type:InstanceType,State:State.Name,Name:Tags[?Key==`Name`].Value|[0]}' --output table 2>/dev/null || echo " No instances
14+
2. Counting by state
15+
16+
## Resources created
17+
18+
None — this script is read-only.
19+
20+
## Cost
21+
22+
No cost. This script only reads existing resources.
23+
24+
## Related docs
25+
26+
- [AWS CLI ec2 reference](https://docs.aws.amazon.com/cli/latest/reference/ec2/index.html)
27+
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Ec2 Describe Instances
2+
3+
## Prerequisites
4+
5+
1. AWS CLI installed and configured (`aws configure`)
6+
2. Appropriate IAM permissions for the AWS services used
7+
8+
## Step 1: Listing all instances"; aws ec2 describe-instances --query 'Reservations[].Instances[].{Id:InstanceId,Type:InstanceType,State:State.Name,Name:Tags[?Key==`Name`].Value|[0]}' --output table 2>/dev/null || echo " No instances
9+
10+
The script handles this step automatically. See `ec2-describe-instances.sh` for the exact CLI commands.
11+
12+
## Step 2: Counting by state
13+
14+
The script handles this step automatically. See `ec2-describe-instances.sh` for the exact CLI commands.
15+

tuts/200-ec2-vpc-subnets/README.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# Ec2 Vpc Subnets
2+
3+
A read-only script that queries Ec2 resources and displays information.
4+
5+
## Running
6+
7+
```bash
8+
bash ec2-vpc-subnets.sh
9+
```
10+
11+
## What it does
12+
13+
1. Listing VPCs
14+
2. Listing subnets
15+
3. Listing route tables
16+
4. Listing internet gateways
17+
18+
## Resources created
19+
20+
None — this script is read-only.
21+
22+
## Cost
23+
24+
No cost. This script only reads existing resources.
25+
26+
## Related docs
27+
28+
- [AWS CLI ec2 reference](https://docs.aws.amazon.com/cli/latest/reference/ec2/index.html)
29+
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Ec2 Vpc Subnets
2+
3+
## Prerequisites
4+
5+
1. AWS CLI installed and configured (`aws configure`)
6+
2. Appropriate IAM permissions for the AWS services used
7+
8+
## Step 1: Listing VPCs
9+
10+
The script handles this step automatically. See `ec2-vpc-subnets.sh` for the exact CLI commands.
11+
12+
## Step 2: Listing subnets
13+
14+
The script handles this step automatically. See `ec2-vpc-subnets.sh` for the exact CLI commands.
15+
16+
## Step 3: Listing route tables
17+
18+
The script handles this step automatically. See `ec2-vpc-subnets.sh` for the exact CLI commands.
19+
20+
## Step 4: Listing internet gateways
21+
22+
The script handles this step automatically. See `ec2-vpc-subnets.sh` for the exact CLI commands.
23+

tuts/201-lambda-logging/README.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# Lambda Logging
2+
3+
A read-only script that queries Logs resources and displays information.
4+
5+
## Running
6+
7+
```bash
8+
bash lambda-logging.sh
9+
```
10+
11+
## What it does
12+
13+
1. Listing Lambda log groups
14+
2. Getting recent log events from a function
15+
16+
## Resources created
17+
18+
None — this script is read-only.
19+
20+
## Cost
21+
22+
No cost. This script only reads existing resources.
23+
24+
## Related docs
25+
26+
- [AWS CLI logs reference](https://docs.aws.amazon.com/cli/latest/reference/logs/index.html)
27+
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Lambda Logging
2+
3+
## Prerequisites
4+
5+
1. AWS CLI installed and configured (`aws configure`)
6+
2. Appropriate IAM permissions for the AWS services used
7+
8+
## Step 1: Listing Lambda log groups
9+
10+
The script handles this step automatically. See `lambda-logging.sh` for the exact CLI commands.
11+
12+
## Step 2: Getting recent log events from a function
13+
14+
The script handles this step automatically. See `lambda-logging.sh` for the exact CLI commands.
15+
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# Ec2 Network Interfaces
2+
3+
A read-only script that queries Ec2 resources and displays information.
4+
5+
## Running
6+
7+
```bash
8+
bash ec2-network-interfaces.sh
9+
```
10+
11+
## What it does
12+
13+
1. Listing network interfaces
14+
2. Counting by type
15+
16+
## Resources created
17+
18+
None — this script is read-only.
19+
20+
## Cost
21+
22+
No cost. This script only reads existing resources.
23+
24+
## Related docs
25+
26+
- [AWS CLI ec2 reference](https://docs.aws.amazon.com/cli/latest/reference/ec2/index.html)
27+
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Ec2 Network Interfaces
2+
3+
## Prerequisites
4+
5+
1. AWS CLI installed and configured (`aws configure`)
6+
2. Appropriate IAM permissions for the AWS services used
7+
8+
## Step 1: Listing network interfaces
9+
10+
The script handles this step automatically. See `ec2-network-interfaces.sh` for the exact CLI commands.
11+
12+
## Step 2: Counting by type
13+
14+
The script handles this step automatically. See `ec2-network-interfaces.sh` for the exact CLI commands.
15+

tuts/207-ec2-volumes/README.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# Ec2 Volumes
2+
3+
A read-only script that queries Ec2 resources and displays information.
4+
5+
## Running
6+
7+
```bash
8+
bash ec2-volumes.sh
9+
```
10+
11+
## What it does
12+
13+
1. Listing volumes
14+
2. Volume summary"; echo " Total: $(aws ec2 describe-volumes --query 'Volumes | length(@)' --output text) volumes
15+
16+
## Resources created
17+
18+
None — this script is read-only.
19+
20+
## Cost
21+
22+
No cost. This script only reads existing resources.
23+
24+
## Related docs
25+
26+
- [AWS CLI ec2 reference](https://docs.aws.amazon.com/cli/latest/reference/ec2/index.html)
27+
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Ec2 Volumes
2+
3+
## Prerequisites
4+
5+
1. AWS CLI installed and configured (`aws configure`)
6+
2. Appropriate IAM permissions for the AWS services used
7+
8+
## Step 1: Listing volumes
9+
10+
The script handles this step automatically. See `ec2-volumes.sh` for the exact CLI commands.
11+
12+
## Step 2: Volume summary"; echo " Total: $(aws ec2 describe-volumes --query 'Volumes | length(@)' --output text) volumes
13+
14+
The script handles this step automatically. See `ec2-volumes.sh` for the exact CLI commands.
15+

0 commit comments

Comments
 (0)