AWS production infra: CDK, per-app Dockerfiles, OIDC CD, learn curriculum - #51
Merged
Conversation
… curriculum - infra/: CDK v2 app — network (VPC/zone/wildcard cert), OIDC deploy roles, CloudFront WAF (us-east-1), prod (Multi-AZ RDS, Redis failover, ECS blue/green, budget), lab (mirrors with nightly scale-to-zero, web-vue on S3) - Dockerfiles for api-elysia, api-go, api-axum, web-vue - cd.yml: GHCR/VPS replaced by ECR push + OIDC cdk deploy behind production gate - learn/aws/: 7-lesson curriculum + LocalStack on xiroserver-lan (ADR-0005..0007) - api mail: Resend over SMTP via MAIL_HOST/MAIL_PORT
…ss-region cert validation Spec review blockers: - prod containers now declare portMappings (ECS rejects the service otherwise) - cd.yml build-push job gets environment: build so the OIDC sub claim matches the deploy role condition; roles are now webdev-deploy-build / -production - CloudFront cert validates via CFN-native DomainValidationOptions (DnsValidatedCertificate-free, no pending-manual step) - lab wake cron comment 07:00 -> 08:00 ICT Standards cleanup: ADR-0006/0007 reworded to match reality (ECR push, web-vue Dockerfile LAN-only), edge() returns the listener instead of casting, loop index for rule priority, no removalPolicy:undefined, prettier+typecheck wired for infra/** (tests included).
…st exist at synth)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
infra/— AWS CDK v2 (TS): network (VPC/zone/wildcard cert), OIDC deploy roles, CloudFront WAF (us-east-1), prod (Multi-AZ RDS PITR, Redis failover, ECS blue/green via CodeDeploy, $100 budget alarm), lab (api-go/api-axum/api-elysia scale-to-zero 23:00–08:00 ICT, web-vue static on S3+CloudFront)cd.yml: GHCR/VPS deploy → ECR push (OIDC envbuild) +cdk deploy --allbehindproductionapproval gatelearn/aws/— 6 lessons + LocalStack on xiroserver-lan (scripts/localstack/)MAIL_HOST/MAIL_PORTChecks
tsc --noEmit+ 9 cdk-assertion tests passHuman-only steps after merge
checklist in
learn/aws/README.md(AWS account, GitHub envsbuild/production, NS delegation,cdk bootstrap, fill secrets, Resend, PayOS/OAuth callbacks).