Skip to content

Commit 673bf91

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 c70affa commit 673bf91

9 files changed

Lines changed: 42 additions & 26 deletions

File tree

tuts/090-amazon-comprehend-gs/README.md

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -45,15 +45,3 @@ Comprehend pricing is per unit (100 characters). This tutorial analyzes ~500 cha
4545
- [Sentiment analysis](https://docs.aws.amazon.com/comprehend/latest/dg/how-sentiment.html)
4646
- [Entity recognition](https://docs.aws.amazon.com/comprehend/latest/dg/how-entities.html)
4747
- [PII detection](https://docs.aws.amazon.com/comprehend/latest/dg/how-pii.html)
48-
49-
---
50-
51-
## Appendix: Generation details
52-
53-
| Field | Value |
54-
|-------|-------|
55-
| Generation date | 2026-04-14 |
56-
| Source script | New, 57 lines |
57-
| Script test result | EXIT 0, 5s, 5 steps, stateless API |
58-
| Issues encountered | None — stateless API, no resource management needed |
59-
| 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: 090-amazon-comprehend-gs
2+
3+
## Shell (CLI script)
4+
5+
### 2026-04-14 v1 published
6+
- Type: functional
7+
- Initial version
8+

tuts/091-amazon-translate-gs/README.md

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -45,15 +45,3 @@ Translate pricing is per character. This tutorial translates ~600 characters, co
4545
- [Translating text using the API](https://docs.aws.amazon.com/translate/latest/dg/get-started-api.html)
4646
- [Supported languages](https://docs.aws.amazon.com/translate/latest/dg/what-is-languages.html)
4747
- [Automatic source language detection](https://docs.aws.amazon.com/translate/latest/dg/auto-detect.html)
48-
49-
---
50-
51-
## Appendix: Generation details
52-
53-
| Field | Value |
54-
|-------|-------|
55-
| Generation date | 2026-04-14 |
56-
| Source script | New, 60 lines |
57-
| Script test result | EXIT 0, 5s, 5 steps, stateless API |
58-
| Issues encountered | None — stateless API, no resource management needed |
59-
| 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: 091-amazon-translate-gs
2+
3+
## Shell (CLI script)
4+
5+
### 2026-04-14 v1 published
6+
- Type: functional
7+
- Initial version
8+
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Revision History: 103-amazon-textract-gs
2+
3+
## Shell (CLI script)
4+
5+
### 2026-04-14 v1 published
6+
- Type: functional
7+
- Initial version
8+

tuts/103-amazon-textract-gs/amazon-textract-gs.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export AWS_DEFAULT_REGION="$REGION"
1515
ACCOUNT_ID=$(aws sts get-caller-identity --query 'Account' --output text)
1616
echo "Region: $REGION"
1717

18-
RANDOM_ID=$(openssl rand -hex 4)
18+
RANDOM_ID=$(cat /dev/urandom | tr -dc 'a-z0-9' | fold -w 8 | head -n 1)
1919
BUCKET_NAME="textract-tut-${RANDOM_ID}-${ACCOUNT_ID}"
2020

2121
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: 104-amazon-polly-gs
2+
3+
## Shell (CLI script)
4+
5+
### 2026-04-14 v1 published
6+
- Type: functional
7+
- Initial version
8+
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Revision History: 105-amazon-rekognition-gs
2+
3+
## Shell (CLI script)
4+
5+
### 2026-04-14 v1 published
6+
- Type: functional
7+
- Initial version
8+

tuts/105-amazon-rekognition-gs/amazon-rekognition-gs.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export AWS_DEFAULT_REGION="$REGION"
1515
ACCOUNT_ID=$(aws sts get-caller-identity --query 'Account' --output text)
1616
echo "Region: $REGION"
1717

18-
RANDOM_ID=$(openssl rand -hex 4)
18+
RANDOM_ID=$(cat /dev/urandom | tr -dc 'a-z0-9' | fold -w 8 | head -n 1)
1919
BUCKET_NAME="rekognition-tut-${RANDOM_ID}-${ACCOUNT_ID}"
2020

2121
handle_error() { echo "ERROR on line $1"; trap - ERR; cleanup; exit 1; }

0 commit comments

Comments
 (0)