Skip to content

Commit 498bfbe

Browse files
committed
Move deploy/cleanup to cfn/, create 000-prereqs-bucket and 000-prereqs-vpc
Prereq stacks are now tutorials that appear in the list: 000-prereqs-bucket: shared S3 bucket (setup + cleanup scripts) 000-prereqs-vpc: shared VPC with public/private subnets deploy.sh and cleanup.sh moved to cfn/ directory. All README and CFN interact script references updated.
1 parent 46502af commit 498bfbe

33 files changed

Lines changed: 125 additions & 30 deletions
File renamed without changes.
File renamed without changes.

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.

cfn/cleanup-bucket.sh renamed to tuts/000-prereqs-bucket/cleanup-prereqs-bucket.sh

File renamed without changes.

tuts/000-prereqs-vpc/README.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# Shared tutorial VPC
2+
3+
Creates a shared VPC with public and private subnets used by tutorials that need networking infrastructure. Tutorials check for this stack automatically.
4+
5+
## Deploy
6+
7+
```bash
8+
bash tuts/000-prereqs-vpc/prereqs-vpc.sh
9+
```
10+
11+
## Clean up
12+
13+
```bash
14+
bash tuts/000-prereqs-vpc/cleanup-prereqs-vpc.sh
15+
```
16+
17+
## Resources created
18+
19+
- VPC with public and private subnets
20+
- Internet gateway, NAT gateway
21+
- Route tables, security groups
22+
- CloudFormation stack `tutorial-prereqs-vpc-public`
23+
24+
## Used by
25+
26+
Tutorials that create VPCs or need networking:
27+
002, 008, 012, 015, 047, 055, 064, 075
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Revision History: 000-prereqs-vpc
2+
3+
## CloudFormation
4+
5+
### 2026-04-20 v1 published
6+
- Type: functional
7+
- Public VPC with NAT gateway for tutorials needing networking

cfn/prereq-vpc-private.yaml renamed to tuts/000-prereqs-vpc/cfn-prereqs-vpc-private.yaml

File renamed without changes.

0 commit comments

Comments
 (0)