mirror of
https://github.com/Sea-Haven-Industries/shoc-frontend-new.git
synced 2026-10-07 16:19:01 +00:00
Provision the frontend's AWS hosting as a CDK app local to this repo (private S3 + OAC, CloudFront with SPA 403/404 -> index.html fallback) and a GitHub OIDC deploy role scoped to the dev branch. Deploy on push to dev via the org reusable cd-cdk.yaml: cdk deploy provisions infra, then scripts/deploy-web.sh builds the SPA, syncs to S3 (immutable hashed assets, no-cache index.html) and invalidates CloudFront. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
13 lines
423 B
JSON
13 lines
423 B
JSON
{
|
|
"app": "npx ts-node --prefer-ts-exts bin/app.ts",
|
|
"watch": {
|
|
"include": ["**"],
|
|
"exclude": ["README.md", "cdk*.json", "**/*.d.ts", "node_modules", "cdk.out"]
|
|
},
|
|
"context": {
|
|
"@aws-cdk/aws-iam:minimizePolicies": true,
|
|
"@aws-cdk/core:checkSecretUsage": true,
|
|
"@aws-cdk/aws-s3:serverAccessLogsUseBucketPolicy": true,
|
|
"@aws-cdk/aws-cloudfront:useDefaultSecurityPolicyTLSv1.2_2021": true
|
|
}
|
|
}
|