Shared: S3
Module creating 4 shared S3 Buckets for all stages
Shared Moduleshared/modules/s3
Info
Buckets are created once per account, not affected when destroying stage.
Buckets
| Bucket | Purpose |
|---|---|
| milu2-stage | Artifact / stage storage, mount-s3 on EC2 |
| milu2-stage-cdn.milu.jp | Static website origin → CloudFront |
| milu2-stage-mysql-backup | MySQL backup files |
| milu2stage-upload.milu.jp | User uploads origin → CloudFront |
existing Flag
Variable existing_s3 in terraform.tfvars determines skip or create buckets:
existing_s3 = true→ Skip, don't createexisting_s3 = false→ Create new
preflight-check.ps1 automatically checks and updates this flag.
Outputs
| Name | Description |
|---|---|
| bucket_arns | Map of bucket name → ARN |
| bucket_regional_domain_names | Map of bucket name → regional domain |