Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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 '*'
```