Skip to content

Commit

Permalink
change stack name
Browse files Browse the repository at this point in the history
  • Loading branch information
gugzkumar committed Dec 13, 2019
1 parent 9dc8dce commit 83e263f
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 28 deletions.
2 changes: 1 addition & 1 deletion .aws-infrastructure/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ ENV HOME=/usr/src/app
WORKDIR $HOME
COPY ./ $HOME
RUN npm install -g aws-cdk@1.18.0 --quiet
# RUN npm install --quiet
RUN npm install --quiet
7 changes: 7 additions & 0 deletions .aws-infrastructure/src/bin/CheetSheetInfrastructure.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/usr/bin/env node
import 'source-map-support/register';
import cdk = require('@aws-cdk/core');
import { CheetSheetInfrastructureStack } from '../lib/CheetSheetInfrastructure-stack';

const app = new cdk.App();
new CheetSheetInfrastructureStack(app, 'CheetSheetInfrastructureStack');
7 changes: 0 additions & 7 deletions .aws-infrastructure/src/bin/src.ts

This file was deleted.

3 changes: 3 additions & 0 deletions .aws-infrastructure/src/cdk.context.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"@aws-cdk/core:enableStackNameDuplicates": "true"
}
5 changes: 1 addition & 4 deletions .aws-infrastructure/src/cdk.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
{
"app": "npx ts-node bin/src.ts",
"context": {
"@aws-cdk/core:enableStackNameDuplicates": "true"
}
"app": "npx ts-node bin/CheetSheetInfrastructure.ts"
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import cdk = require('@aws-cdk/core');

export class SrcStack extends cdk.Stack {
export class CheetSheetInfrastructureStack extends cdk.Stack {
constructor(scope: cdk.Construct, id: string, props?: cdk.StackProps) {
super(scope, id, props);

Expand Down
4 changes: 2 additions & 2 deletions .aws-infrastructure/src/package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"name": "src",
"name": ".aws-infrastructure",
"version": "0.1.0",
"bin": {
"src": "bin/src.js"
"src": "bin/CheetSheetInfrastructure.js"
},
"scripts": {
"build": "tsc",
Expand Down
13 changes: 0 additions & 13 deletions .aws-infrastructure/src/test/src.test.ts

This file was deleted.

0 comments on commit 83e263f

Please sign in to comment.