Skip to content

Commit a5bd317

Browse files
committed
Add README.md and tutorial walkthrough for script-only tutorials
1 parent b6c92bf commit a5bd317

2 files changed

Lines changed: 70 additions & 0 deletions

File tree

tuts/120-aws-sts-gs/README.md

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# Aws Sts Gs
2+
3+
An AWS CLI tutorial that demonstrates Iam operations.
4+
5+
## Running
6+
7+
```bash
8+
bash aws-sts-gs.sh
9+
```
10+
11+
To auto-run with cleanup:
12+
13+
```bash
14+
echo 'y' | bash aws-sts-gs.sh
15+
```
16+
17+
## What it does
18+
19+
1. Getting caller identity
20+
2. Creating a role to assume
21+
3. Assuming the role
22+
4. Using temporary credentials
23+
5. Session tags (decode token)
24+
25+
## Resources created
26+
27+
- Role
28+
- Role Policy
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+

tuts/120-aws-sts-gs/aws-sts-gs.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# Aws Sts Gs
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: Getting caller identity
9+
10+
The script handles this step automatically. See `aws-sts-gs.sh` for the exact CLI commands.
11+
12+
## Step 2: Creating a role to assume
13+
14+
The script handles this step automatically. See `aws-sts-gs.sh` for the exact CLI commands.
15+
16+
## Step 3: Assuming the role
17+
18+
The script handles this step automatically. See `aws-sts-gs.sh` for the exact CLI commands.
19+
20+
## Step 4: Using temporary credentials
21+
22+
The script handles this step automatically. See `aws-sts-gs.sh` for the exact CLI commands.
23+
24+
## Step 5: Session tags (decode token)
25+
26+
The script handles this step automatically. See `aws-sts-gs.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)