Skip to content

Commit 2528d79

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 13b66b7 commit 2528d79

12 files changed

Lines changed: 45 additions & 29 deletions

File tree

tuts/094-aws-cloudtrail-gs/README.md

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -54,15 +54,3 @@ S3 storage only. CloudTrail delivers management event logs to S3 at no charge fo
5454
- [Amazon S3 bucket policy for CloudTrail](https://docs.aws.amazon.com/awscloudtrail/latest/userguide/create-s3-bucket-policy-for-cloudtrail.html)
5555
- [Looking up events with LookupEvents](https://docs.aws.amazon.com/awscloudtrail/latest/userguide/view-cloudtrail-events-cli.html)
5656
- [CloudTrail pricing](https://aws.amazon.com/cloudtrail/pricing/)
57-
58-
---
59-
60-
## Appendix: Generation details
61-
62-
| Field | Value |
63-
|-------|-------|
64-
| Generation date | 2026-04-14 |
65-
| Script lines | 110 |
66-
| Script test result | EXIT 0, 10s, 6 steps, no issues |
67-
| Issues encountered | None |
68-
| Iterations | v1 |
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Revision History: 094-aws-cloudtrail-gs
2+
3+
## Shell (CLI script)
4+
5+
### 2026-04-14 v1 published
6+
- Type: functional
7+
- Initial version
8+

tuts/094-aws-cloudtrail-gs/aws-cloudtrail-gs.sh

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

19-
RANDOM_ID=$(openssl rand -hex 4)
19+
RANDOM_ID=$(cat /dev/urandom | tr -dc 'a-z0-9' | fold -w 8 | head -n 1)
2020
TRAIL_NAME="tutorial-trail-${RANDOM_ID}"
2121
BUCKET_NAME="cloudtrail-tut-${RANDOM_ID}-${ACCOUNT_ID}"
2222

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Revision History: 099-amazon-cloudwatch-logs-gs
2+
3+
## Shell (CLI script)
4+
5+
### 2026-04-14 v1 published
6+
- Type: functional
7+
- Initial version
8+

tuts/099-amazon-cloudwatch-logs-gs/amazon-cloudwatch-logs-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
LOG_GROUP="/tutorial/app-${RANDOM_ID}"
1919
STREAM_NAME="web-server"
2020

tuts/106-aws-budgets-gs/README.md

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -36,15 +36,3 @@ Free. The first two budgets per account have no charge. Additional budgets cost
3636
- [Creating a cost budget](https://docs.aws.amazon.com/cost-management/latest/userguide/budgets-create.html)
3737
- [Managing your costs with AWS Budgets](https://docs.aws.amazon.com/cost-management/latest/userguide/budgets-managing-costs.html)
3838
- [AWS Budgets CLI reference](https://docs.aws.amazon.com/cli/latest/reference/budgets/index.html)
39-
40-
---
41-
42-
## Appendix: Generation details
43-
44-
| Field | Value |
45-
|-------|-------|
46-
| Generation date | 2026-04-14 |
47-
| Source script | New, 76 lines |
48-
| Script test result | EXIT 0, 5s, 4 steps, no issues |
49-
| Issues encountered | None |
50-
| 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: 106-aws-budgets-gs
2+
3+
## Shell (CLI script)
4+
5+
### 2026-04-14 v1 published
6+
- Type: functional
7+
- Initial version
8+

tuts/106-aws-budgets-gs/aws-budgets-gs.sh

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

19-
RANDOM_ID=$(openssl rand -hex 4)
19+
RANDOM_ID=$(cat /dev/urandom | tr -dc 'a-z0-9' | fold -w 8 | head -n 1)
2020
BUDGET_NAME="tutorial-budget-${RANDOM_ID}"
2121

2222
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: 111-amazon-cloudwatch-gs
2+
3+
## Shell (CLI script)
4+
5+
### 2026-04-14 v1 published
6+
- Type: functional
7+
- Initial version
8+

tuts/111-amazon-cloudwatch-gs/amazon-cloudwatch-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
ALARM_NAME="tut-alarm-${RANDOM_ID}"
1919
DASHBOARD_NAME="tut-dashboard-${RANDOM_ID}"
2020

0 commit comments

Comments
 (0)