Skip to content

Commit 482c113

Browse files
committed
Merge branch 'main' into feature/sdk-php
2 parents 3a88aa8 + fe14631 commit 482c113

166 files changed

Lines changed: 8295 additions & 4381 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.doc_gen/validation.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
allow_list:
22
- "bPxRfiCYEXAMPLEKEY/wJalrXUtnFEMI/K7MDENG"
33
- "role/AmazonEC2ContainerServiceforEC2Role"
4+
- "========================================"
45
sample_files:
56
- "README.md"

.gitignore

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
*.log
2+
*.pem
3+
aws-eump-logs/
4+
dynamodb-tutorial-logs/
5+
Dockerfile
6+
document.png
7+
dashboard-body-*.json
8+
comprehend-policy.json
9+
hello-world.json
10+
input.json
11+
query-results.csv
12+
sentiment-*.json
13+
step-functions-trust-policy.json
14+
stepfunctions-policy.json
15+
textract-*.json
16+
updated-hello-world.json
17+
webserver-template-*.yaml
18+
qbusiness-*.json
19+
datazone_script_v3_fixed.log
20+
idc_setup_*.log
21+
workspaces_creation.log
22+
logs/
23+
*.csv
24+
*.png
25+
Dockerfile
26+
cfn/

BRANCH.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# feature/non-interactive
2+
3+
## What's in this branch
4+
42 tutorial scripts made non-interactive by the DocBash pipeline (run_group: non-interactive-20260427-1821).
5+
Plus 5 scripts fixed locally before the pipeline run (013-ec2, 019-lambda, 033-ses, 035-workspaces, 047-firewall).
6+
7+
All `read -p` and `read -r` user prompts replaced with auto-answers:
8+
- Cleanup confirmations → y
9+
- Press Enter → removed or sleep
10+
- Runtime/config selection → first option
11+
- Email/name/domain → generated values
12+
- VPC/subnet selection → first option or auto-detect
13+
14+
## Status
15+
- 44/70 tutorials passing (42 pipeline + 2 retry)
16+
- 5 fixed locally (on main, included here)
17+
- 21 remaining failures — all environment quota limits (VpcLimitExceeded, AddressLimitExceeded)
18+
19+
## Before publishing
20+
- [ ] Rerun the 21 failures after VPC cleanup completes
21+
- [ ] Verify no `read` prompts remain in passing scripts (spot check)
22+
- [ ] Update REVISION-HISTORY.md for each modified tutorial
23+
24+
## After publishing
25+
- [ ] Rebase feature/resource-tagging off this branch (tagging needs non-interactive as prereq)

cleanup.sh

Lines changed: 0 additions & 113 deletions
This file was deleted.

deploy.sh

Lines changed: 0 additions & 143 deletions
This file was deleted.

hooks/pre-push

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
#!/bin/bash
2+
# pre-push hook: block push if tutorial files changed without REVISION-HISTORY.md update
3+
# Install: cp hooks/pre-push .git/hooks/pre-push && chmod +x .git/hooks/pre-push
4+
5+
REMOTE="$1"
6+
RANGE=$(git merge-base HEAD origin/main)..HEAD
7+
8+
# Find tutorial directories with changes (excluding REVISION-HISTORY itself)
9+
CHANGED_TUTS=$(git diff --name-only "$RANGE" -- 'tuts/' | grep -v REVISION-HISTORY | sed 's|tuts/\([^/]*\)/.*|\1|' | sort -u)
10+
11+
MISSING=""
12+
for tut in $CHANGED_TUTS; do
13+
if ! git diff --name-only "$RANGE" -- "tuts/$tut/REVISION-HISTORY.md" | grep -q .; then
14+
MISSING="$MISSING tuts/$tut/REVISION-HISTORY.md\n"
15+
fi
16+
done
17+
18+
if [ -n "$MISSING" ]; then
19+
echo ""
20+
echo "ERROR: Tutorial files changed without updating REVISION-HISTORY.md:"
21+
echo -e "$MISSING"
22+
echo "Update the revision history before pushing (AGENTS.md rule 7)."
23+
echo "To bypass: git push --no-verify"
24+
exit 1
25+
fi

tuts/000-prereqs-bucket/README.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Shared tutorial S3 bucket
2+
3+
Creates a shared S3 bucket used by tutorials that need object storage. Tutorials check for this stack automatically — if it exists, they use the shared bucket instead of creating their own.
4+
5+
## Deploy
6+
7+
```bash
8+
bash tuts/000-prereqs-bucket/prereqs-bucket.sh
9+
```
10+
11+
## Clean up
12+
13+
```bash
14+
bash tuts/000-prereqs-bucket/cleanup-prereqs-bucket.sh
15+
```
16+
17+
## Resources created
18+
19+
- S3 bucket (named `tutorial-bucket-<account>-<region>`)
20+
- CloudFormation stack `tutorial-prereqs-bucket` (exports the bucket name)
21+
22+
## Used by
23+
24+
Tutorials that create S3 buckets check for this stack first:
25+
003, 005, 028, 037, 053, 061, 074
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Revision History: 000-prereqs-bucket
2+
3+
## Shell (setup/cleanup scripts)
4+
5+
### 2026-04-20 v1 published
6+
- Type: functional
7+
- Initial version: CLI bucket creation + thin CFN stack for exports

cfn/prereq-bucket.yaml renamed to tuts/000-prereqs-bucket/cfn-prereqs-bucket.yaml

File renamed without changes.

0 commit comments

Comments
 (0)