Skip to content

Commit 2b2cf72

Browse files
author
Dipjyoti Metia
committed
initial commit
0 parents  commit 2b2cf72

File tree

9 files changed

+2124
-0
lines changed

9 files changed

+2124
-0
lines changed

.gitignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
*.js
2+
*.d.ts
3+
node_modules
4+
5+
# CDK asset staging directory
6+
.cdk.staging
7+
cdk.out

.npmignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
*.ts
2+
!*.d.ts
3+
4+
# CDK asset staging directory
5+
.cdk.staging
6+
cdk.out

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Useful commands
2+
3+
* `npm run build` compile typescript to js
4+
* `npm run watch` watch for changes and compile
5+
* `cdk deploy` deploy this stack to your default AWS account/region
6+
* `cdk diff` compare deployed stack with current state
7+
* `cdk synth` emits the synthesized CloudFormation template

bin/aws_cdk.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/usr/bin/env node
2+
import 'source-map-support/register';
3+
import cdk = require('@aws-cdk/core');
4+
import { AwsCdkStack } from '../lib/aws_cdk-stack';
5+
6+
const app = new cdk.App();
7+
new AwsCdkStack(app, 'AwsCdkStack');

cdk.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"app": "npx ts-node bin/aws_cdk.ts"
3+
}

lib/aws_cdk-stack.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import cdk = require('@aws-cdk/core');
2+
3+
export class AwsCdkStack extends cdk.Stack {
4+
constructor(scope: cdk.Construct, id: string, props?: cdk.StackProps) {
5+
super(scope, id, props);
6+
7+
// The code that defines your stack goes here
8+
}
9+
}

0 commit comments

Comments
 (0)