This is an AWS CDK Construct to make deploying a Frontend Web App (SPA) deploy to S3 behind CloudFront.
Project description
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
npm install @gammarers/aws-frontend-web-app-deploy-stack
# or
yarn add @gammarers/aws-frontend-web-app-deploy-stack
Python
pip install gammarers.aws-frontend-web-app-deploy-stack
C# / .NET
dotnet add package Gammarers.CDK.AWS.FrontendWebAppDeployStack
Example
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.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for gammarers.aws-frontend-web-app-deploy-stack-1.2.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7b28d371c2166cd78a935478368c83dbac38cbede8c05f7e25e5317cca372794 |
|
MD5 | 2183b883a1830b8d25b59de0a66a68a9 |
|
BLAKE2b-256 | b539132cc23abe3214e751630f5ec88c15215d72b38f30fdfea64dfb3fff7cac |
Close
Hashes for gammarers.aws_frontend_web_app_deploy_stack-1.2.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5a2a6f0a63c7aecc720cf030b53d5254a5ebe61f6ef5be4d66671bced3a9beb8 |
|
MD5 | 48ee5bd9872fa2e940eeadb4f719e53b |
|
BLAKE2b-256 | 7a68d75afc750ce4eba1a497610d6c056d9dded3265d3ed50535f7aa8fda0cd4 |