Skip to content

Commit 735f126

Browse files
committed
Add README.md and tutorial walkthrough for script-only tutorials
1 parent 8823427 commit 735f126

10 files changed

Lines changed: 339 additions & 0 deletions

File tree

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# Ec2 Security Groups
2+
3+
An AWS CLI tutorial that demonstrates Ec2 operations.
4+
5+
## Running
6+
7+
```bash
8+
bash ec2-security-groups.sh
9+
```
10+
11+
To auto-run with cleanup:
12+
13+
```bash
14+
echo 'y' | bash ec2-security-groups.sh
15+
```
16+
17+
## What it does
18+
19+
1. Creating security group: $SG_NAME
20+
2. Adding inbound rules
21+
3. Describing rules
22+
4. Adding a tag
23+
5. Listing security groups
24+
25+
## Resources created
26+
27+
- Security Group
28+
- Tags
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 Security Groups
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 security group: $SG_NAME
9+
10+
The script handles this step automatically. See `ec2-security-groups.sh` for the exact CLI commands.
11+
12+
## Step 2: Adding inbound rules
13+
14+
The script handles this step automatically. See `ec2-security-groups.sh` for the exact CLI commands.
15+
16+
## Step 3: Describing rules
17+
18+
The script handles this step automatically. See `ec2-security-groups.sh` for the exact CLI commands.
19+
20+
## Step 4: Adding a tag
21+
22+
The script handles this step automatically. See `ec2-security-groups.sh` for the exact CLI commands.
23+
24+
## Step 5: Listing security groups
25+
26+
The script handles this step automatically. See `ec2-security-groups.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+
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# Lambda Env Vars
2+
3+
An AWS CLI tutorial that demonstrates Iam operations.
4+
5+
## Running
6+
7+
```bash
8+
bash lambda-env-vars.sh
9+
```
10+
11+
To auto-run with cleanup:
12+
13+
```bash
14+
echo 'y' | bash lambda-env-vars.sh
15+
```
16+
17+
## What it does
18+
19+
1. Creating function with environment variables
20+
2. Invoking function
21+
3. Updating environment variables
22+
4. Invoking with updated vars
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 Env Vars
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 function with environment variables
9+
10+
The script handles this step automatically. See `lambda-env-vars.sh` for the exact CLI commands.
11+
12+
## Step 2: Invoking function
13+
14+
The script handles this step automatically. See `lambda-env-vars.sh` for the exact CLI commands.
15+
16+
## Step 3: Updating environment variables
17+
18+
The script handles this step automatically. See `lambda-env-vars.sh` for the exact CLI commands.
19+
20+
## Step 4: Invoking with updated vars
21+
22+
The script handles this step automatically. See `lambda-env-vars.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/166-lambda-aliases/README.md

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

tuts/169-ec2-key-pairs/README.md

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# Ec2 Keypairs
2+
3+
An AWS CLI tutorial that demonstrates Ec2 operations.
4+
5+
## Running
6+
7+
```bash
8+
bash ec2-keypairs.sh
9+
```
10+
11+
To auto-run with cleanup:
12+
13+
```bash
14+
echo 'y' | bash ec2-keypairs.sh
15+
```
16+
17+
## What it does
18+
19+
1. Creating RSA key pair
20+
2. Creating ED25519 key pair
21+
3. Describing key pairs
22+
4. Listing all tutorial key pairs
23+
24+
## Resources created
25+
26+
- Key Pair
27+
28+
The script prompts you to clean up resources when it finishes.
29+
30+
## Cost
31+
32+
Free tier eligible for most operations. Clean up resources after use to avoid charges.
33+
34+
## Related docs
35+
36+
- [AWS CLI ec2 reference](https://docs.aws.amazon.com/cli/latest/reference/ec2/index.html)
37+
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# Ec2 Keypairs
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 RSA key pair
9+
10+
The script handles this step automatically. See `ec2-keypairs.sh` for the exact CLI commands.
11+
12+
## Step 2: Creating ED25519 key pair
13+
14+
The script handles this step automatically. See `ec2-keypairs.sh` for the exact CLI commands.
15+
16+
## Step 3: Describing key pairs
17+
18+
The script handles this step automatically. See `ec2-keypairs.sh` for the exact CLI commands.
19+
20+
## Step 4: Listing all tutorial key pairs
21+
22+
The script handles this step automatically. See `ec2-keypairs.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+
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# Lambda Urls
2+
3+
An AWS CLI tutorial that demonstrates Iam operations.
4+
5+
## Running
6+
7+
```bash
8+
bash lambda-urls.sh
9+
```
10+
11+
To auto-run with cleanup:
12+
13+
```bash
14+
echo 'y' | bash lambda-urls.sh
15+
```
16+
17+
## What it does
18+
19+
1. Creating function
20+
2. Creating function URL
21+
3. Testing the URL
22+
4. Getting URL config
23+
24+
## Resources created
25+
26+
- Function
27+
- Function Url Config
28+
- Role
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 iam reference](https://docs.aws.amazon.com/cli/latest/reference/iam/index.html)
39+
- [AWS CLI lambda reference](https://docs.aws.amazon.com/cli/latest/reference/lambda/index.html)
40+
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# Lambda Urls
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 function
9+
10+
The script handles this step automatically. See `lambda-urls.sh` for the exact CLI commands.
11+
12+
## Step 2: Creating function URL
13+
14+
The script handles this step automatically. See `lambda-urls.sh` for the exact CLI commands.
15+
16+
## Step 3: Testing the URL
17+
18+
The script handles this step automatically. See `lambda-urls.sh` for the exact CLI commands.
19+
20+
## Step 4: Getting URL config
21+
22+
The script handles this step automatically. See `lambda-urls.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+

0 commit comments

Comments
 (0)