Skip to content

Commit 7a1cc90

Browse files
committed
Add README.md and tutorial walkthrough for script-only tutorials
1 parent a723c17 commit 7a1cc90

4 files changed

Lines changed: 136 additions & 0 deletions

File tree

tuts/151-lambda-layers/README.md

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# Lambda Layers
2+
3+
An AWS CLI tutorial that demonstrates Iam operations.
4+
5+
## Running
6+
7+
```bash
8+
bash lambda-layers.sh
9+
```
10+
11+
To auto-run with cleanup:
12+
13+
```bash
14+
echo 'y' | bash lambda-layers.sh
15+
```
16+
17+
## What it does
18+
19+
1. Creating a layer
20+
2. Creating function that uses the layer
21+
3. Invoking function
22+
4. Listing layers
23+
24+
## Resources created
25+
26+
- Function
27+
- Role
28+
29+
The script prompts you to clean up resources when it finishes.
30+
31+
## Cost
32+
33+
Free tier eligible for most operations. Clean up resources after use to avoid charges.
34+
35+
## Related docs
36+
37+
- [AWS CLI iam reference](https://docs.aws.amazon.com/cli/latest/reference/iam/index.html)
38+
- [AWS CLI lambda reference](https://docs.aws.amazon.com/cli/latest/reference/lambda/index.html)
39+
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# Lambda Layers
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: Creating a layer
9+
10+
The script handles this step automatically. See `lambda-layers.sh` for the exact CLI commands.
11+
12+
## Step 2: Creating function that uses the layer
13+
14+
The script handles this step automatically. See `lambda-layers.sh` for the exact CLI commands.
15+
16+
## Step 3: Invoking function
17+
18+
The script handles this step automatically. See `lambda-layers.sh` for the exact CLI commands.
19+
20+
## Step 4: Listing layers
21+
22+
The script handles this step automatically. See `lambda-layers.sh` for the exact CLI commands.
23+
24+
## Cleanup
25+
26+
The script prompts you to clean up all created resources. If you need to clean up manually, check the script log for the resource names that were created.
27+

tuts/155-ec2-snapshots/README.md

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# Ec2 Snapshots
2+
3+
An AWS CLI tutorial that demonstrates Ec2 operations.
4+
5+
## Running
6+
7+
```bash
8+
bash ec2-snapshots.sh
9+
```
10+
11+
To auto-run with cleanup:
12+
13+
```bash
14+
echo 'y' | bash ec2-snapshots.sh
15+
```
16+
17+
## What it does
18+
19+
1. Creating a volume
20+
2. Creating a snapshot
21+
3. Describing snapshot
22+
4. Copying snapshot (same region)
23+
5. Listing snapshots
24+
25+
## Resources created
26+
27+
- Snapshot
28+
- Volume
29+
30+
The script prompts you to clean up resources when it finishes.
31+
32+
## Cost
33+
34+
Free tier eligible for most operations. Clean up resources after use to avoid charges.
35+
36+
## Related docs
37+
38+
- [AWS CLI ec2 reference](https://docs.aws.amazon.com/cli/latest/reference/ec2/index.html)
39+
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# Ec2 Snapshots
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: Creating a volume
9+
10+
The script handles this step automatically. See `ec2-snapshots.sh` for the exact CLI commands.
11+
12+
## Step 2: Creating a snapshot
13+
14+
The script handles this step automatically. See `ec2-snapshots.sh` for the exact CLI commands.
15+
16+
## Step 3: Describing snapshot
17+
18+
The script handles this step automatically. See `ec2-snapshots.sh` for the exact CLI commands.
19+
20+
## Step 4: Copying snapshot (same region)
21+
22+
The script handles this step automatically. See `ec2-snapshots.sh` for the exact CLI commands.
23+
24+
## Step 5: Listing snapshots
25+
26+
The script handles this step automatically. See `ec2-snapshots.sh` for the exact CLI commands.
27+
28+
## Cleanup
29+
30+
The script prompts you to clean up all created resources. If you need to clean up manually, check the script log for the resource names that were created.
31+

0 commit comments

Comments
 (0)