https://github.com/gammarers/aws-frontend-web-app-deploy-stack
his is an AWS CDK Construct to make deploying a Frontend Web App (SPA) deploy to S3 behind CloudFront.
https://github.com/gammarers/aws-frontend-web-app-deploy-stack
aws bucket cdk cicd cloudfront cloudfront-distribution deploy s3 s3-bucket spa
Last synced: 5 months ago
JSON representation
his is an AWS CDK Construct to make deploying a Frontend Web App (SPA) deploy to S3 behind CloudFront.
- Host: GitHub
- URL: https://github.com/gammarers/aws-frontend-web-app-deploy-stack
- Owner: gammarers
- License: apache-2.0
- Created: 2022-12-28T06:36:38.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2025-04-18T04:09:39.000Z (about 1 year ago)
- Last Synced: 2025-04-22T12:37:27.406Z (about 1 year ago)
- Topics: aws, bucket, cdk, cicd, cloudfront, cloudfront-distribution, deploy, s3, s3-bucket, spa
- Language: TypeScript
- Homepage:
- Size: 1.54 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# AWS Frontend Web App Deploy Stack
[](https://github.com/gammarers/aws-frontend-web-app-deploy-stack/blob/main/LICENSE)
[](https://www.npmjs.com/package/@gammarers/aws-frontend-web-app-deploy-stack)
[](https://pypi.org/project/gammarers.aws-frontend-web-app-deploy-stack/)
[](https://www.nuget.org/packages/Gammarers.CDK.AWS.FrontendWebAppDeployStack/)
[](https://github.com/gammarers/aws-frontend-web-app-deploy-stack/actions/workflows/release.yml)
[](https://github.com/gammarers/aws-frontend-web-app-deploy-stack/releases)
[](https://constructs.dev/packages/@gammarers/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
```shell
npm install @gammarers/aws-frontend-web-app-deploy-stack
```
#### install by yarn
```shell
yarn add @gammarers/aws-frontend-web-app-deploy-stack
```
#### install by pnpm
```shell
pnpm add @gammarers/aws-frontend-web-app-deploy-stack
```
#### install by bun
```shell
bun add @gammarers/aws-frontend-web-app-deploy-stack
```
### Python
```shell
pip install gammarers.aws-frontend-web-app-deploy-stack
```
### C# / .NET
```shell
dotnet add package Gammarers.CDK.AWS.FrontendWebAppDeployStack
```
## Example
```typescript
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.