Skip to content

Commit c3ed52c

Browse files
committed
Apply technical requirements (R1, R2, R9, R10, R13)
- R1: Add AWS_REGION to region fallback chain - R2: Replace openssl rand with /dev/urandom - R9: Remove Appendix/Generation details from READMEs - R10: Remove internal references - R13: Add REVISION-HISTORY.md
1 parent caf36d5 commit c3ed52c

12 files changed

Lines changed: 45 additions & 29 deletions

File tree

tuts/026-kinesis-data-streams/README.md

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -59,15 +59,3 @@ Kinesis: $0.015/shard-hour. DynamoDB: on-demand pricing. Both are negligible for
5959
- [Tutorial: Process real-time stock data using KPL and KCL](https://docs.aws.amazon.com/streams/latest/dev/tutorial-stock-data-kplkcl2.html)
6060
- [Using Lambda with Kinesis](https://docs.aws.amazon.com/lambda/latest/dg/with-kinesis.html)
6161
- [Amazon Kinesis Data Streams terminology](https://docs.aws.amazon.com/streams/latest/dev/key-concepts.html)
62-
63-
---
64-
65-
## Appendix: Generation details
66-
67-
| Field | Value |
68-
|-------|-------|
69-
| Generation date | 2026-04-14 |
70-
| Source script | Full rewrite from internal 026-kinesis-ds-gs/2-cli-script-v3.sh |
71-
| Script test result | EXIT 0, 185s, 8 steps, clean teardown |
72-
| Issues encountered | Original had hardcoded resource names (fixed with random IDs); python3.9 runtime (upgraded to 3.12); stream name embedded in Lambda code via bash interpolation (fixed with env vars); DynamoDB verification timing — Kinesis event source mapping first poll can take 60s after Enabled state |
73-
| Iterations | v1 (internal, hardcoded), v2 (partial fixes), v3 (internal, still hardcoded), v4 (clean rewrite for publish) |
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Revision History: 026-kinesis-data-streams
2+
3+
## Shell (CLI script)
4+
5+
### 2026-04-14 v1 published
6+
- Type: functional
7+
- Initial version
8+

tuts/026-kinesis-data-streams/kinesis-data-streams.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ fi
1414
export AWS_DEFAULT_REGION="$REGION"
1515
echo "Region: $REGION"
1616

17-
RANDOM_ID=$(openssl rand -hex 4)
17+
RANDOM_ID=$(cat /dev/urandom | tr -dc 'a-z0-9' | fold -w 8 | head -n 1)
1818
STREAM_NAME="stock-stream-${RANDOM_ID}"
1919
ROLE_NAME="kinesis-tut-role-${RANDOM_ID}"
2020
PRODUCER_NAME="stock-producer-${RANDOM_ID}"

tuts/095-aws-acm-gs/README.md

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -48,15 +48,3 @@ Free. There is no charge for ACM-issued public SSL/TLS certificates.
4848
- [DNS validation](https://docs.aws.amazon.com/acm/latest/userguide/dns-validation.html)
4949
- [Tagging ACM certificates](https://docs.aws.amazon.com/acm/latest/userguide/tags.html)
5050
- [Deleting certificates](https://docs.aws.amazon.com/acm/latest/userguide/gs-acm-delete.html)
51-
52-
---
53-
54-
## Appendix: Generation details
55-
56-
| Field | Value |
57-
|-------|-------|
58-
| Generation date | 2026-04-14 |
59-
| Source script | New, 76 lines |
60-
| Script test result | EXIT 0, 7s, 5 steps, no issues |
61-
| Issues encountered | DNS validation record sometimes empty on first describe (cosmetic) |
62-
| Iterations | v1 (direct to publish) |
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Revision History: 095-aws-acm-gs
2+
3+
## Shell (CLI script)
4+
5+
### 2026-04-14 v1 published
6+
- Type: functional
7+
- Initial version
8+

tuts/095-aws-acm-gs/aws-acm-gs.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ fi
1414
export AWS_DEFAULT_REGION="$REGION"
1515
echo "Region: $REGION"
1616

17-
RANDOM_ID=$(openssl rand -hex 4)
17+
RANDOM_ID=$(cat /dev/urandom | tr -dc 'a-z0-9' | fold -w 8 | head -n 1)
1818
DOMAIN="tutorial-${RANDOM_ID}.example.com"
1919

2020
handle_error() { echo "ERROR on line $1"; trap - ERR; cleanup; exit 1; }
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Revision History: 100-aws-secrets-manager-gs
2+
3+
## Shell (CLI script)
4+
5+
### 2026-04-14 v1 published
6+
- Type: functional
7+
- Initial version
8+

tuts/100-aws-secrets-manager-gs/aws-secrets-manager-gs.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ fi
1414
export AWS_DEFAULT_REGION="$REGION"
1515
echo "Region: $REGION"
1616

17-
RANDOM_ID=$(openssl rand -hex 4)
17+
RANDOM_ID=$(cat /dev/urandom | tr -dc 'a-z0-9' | fold -w 8 | head -n 1)
1818
SECRET_NAME="tutorial/db-creds-${RANDOM_ID}"
1919

2020
handle_error() { echo "ERROR on line $1"; trap - ERR; cleanup; exit 1; }
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Revision History: 101-aws-step-functions-gs
2+
3+
## Shell (CLI script)
4+
5+
### 2026-04-14 v1 published
6+
- Type: functional
7+
- Initial version
8+

tuts/101-aws-step-functions-gs/aws-step-functions-gs.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ fi
1414
export AWS_DEFAULT_REGION="$REGION"
1515
echo "Region: $REGION"
1616

17-
RANDOM_ID=$(openssl rand -hex 4)
17+
RANDOM_ID=$(cat /dev/urandom | tr -dc 'a-z0-9' | fold -w 8 | head -n 1)
1818
SM_NAME="tut-state-machine-${RANDOM_ID}"
1919
ROLE_NAME="sfn-tut-role-${RANDOM_ID}"
2020

0 commit comments

Comments
 (0)