Package Exports
- @gammarers/aws-frontend-web-app-deploy-stack
- @gammarers/aws-frontend-web-app-deploy-stack/lib/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@gammarers/aws-frontend-web-app-deploy-stack) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
AWS Frontend Web App Deploy Stack
This is an AWS CDK Construct to make deploying a Frontend Web App (SPA) deploy to S3 behind CloudFront.
Install
TypeScript
install by npm
npm install @gammarers/aws-frontend-web-app-deploy-stackinstall by yarn
yarn add @gammarers/aws-frontend-web-app-deploy-stackinstall by pnpm
pnpm add @gammarers/aws-frontend-web-app-deploy-stackinstall by bun
bun add @gammarers/aws-frontend-web-app-deploy-stackPython
pip install gammarers.aws-frontend-web-app-deploy-stackC# / .NET
dotnet add package Gammarers.CDK.AWS.FrontendWebAppDeployStackExample
import { FrontendWebAppDeployStack } from '@gammarers/aws-frontend-web-app-deploy-stack';
new FrontendWebAppDeployStack(app, 'FrontendWebAppDeployStack', {
env: { account: '012345678901', region: 'us-east-1' },
domainName: 'example.com',
hostedZoneId: 'Z0000000000000000000Q',
originBucketName: 'frontend-web-app-example-origin-bucket', // new create in this stack
deploySourceAssetPath: 'website/',
logBucketArn: 'arn:aws:s3:::frontend-web-app-example-access-log-bucket', // already created
});
License
This project is licensed under the Apache-2.0 License.