Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sonufrienko/aws-cdk-static-website
Create infrastructure for a static website with AWS CDK
https://github.com/sonufrienko/aws-cdk-static-website
Last synced: 23 days ago
JSON representation
Create infrastructure for a static website with AWS CDK
- Host: GitHub
- URL: https://github.com/sonufrienko/aws-cdk-static-website
- Owner: sonufrienko
- License: mit
- Created: 2020-02-23T19:18:26.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-01-05T08:06:54.000Z (almost 2 years ago)
- Last Synced: 2024-06-12T17:30:18.764Z (5 months ago)
- Language: TypeScript
- Size: 1020 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 14
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Static website with AWS CDK
![](aws-s3-cloudfront-website.png)
## Getting started
Install the AWS CDK using the following command.
```shell
npm install -g aws-cdk
```Build and deploy
```shell
npm run build # compile typescript to js
cdk synth # emits the synthesized CloudFormation template
cdk deploy # deploy this stack to your default AWS account/region
```Using AWS profile
```shell
cdk deploy --profile tester
```Deploy by stack name
```shell
cdk deploy ReactStack
```Deploy all stacks
```shell
cdk deploy '*'
```