Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sonufrienko/experiment-aws-cdk
Experiment with AWS CDK
https://github.com/sonufrienko/experiment-aws-cdk
Last synced: 23 days ago
JSON representation
Experiment with AWS CDK
- Host: GitHub
- URL: https://github.com/sonufrienko/experiment-aws-cdk
- Owner: sonufrienko
- License: mit
- Created: 2019-12-17T18:41:47.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2023-01-05T03:12:54.000Z (almost 2 years ago)
- Last Synced: 2024-06-12T17:30:22.192Z (5 months ago)
- Language: TypeScript
- Size: 1.05 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 15
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Experiment with AWS CDK TypeScript
I will use TypeScript to create a cloud infrastructure with AWS Cloud Development Kit (AWS CDK).
## AWS Profile
You can use default profile from AWS config file `~/.aws/config` or set it explicitly by adding `--profile=sg-profile`
## How to deploy
```bash
npm run build
cdk synth
cdk deploy# Deploy only HostingStack using "sg-profile" AWS profile
cdk deploy HostingStack --profile=sg-profile
```## How to create a new project
```bash
cd experiment-aws-cdk
cdk init sample-app --language=typescript # Example CDK Application with some constructs
```## Useful commands
* `npm run build` compile typescript to js
* `npm run watch` watch for changes and compile
* `npm run test` perform the jest unit tests
* `cdk deploy` deploy this stack to your default AWS account/region
* `cdk diff` compare deployed stack with current state
* `cdk synth` emits the synthesized CloudFormation template