Skip to content

Commit

Permalink
feat: add commit id to custom stack outputs
Browse files Browse the repository at this point in the history
  • Loading branch information
martin.mueller committed Jan 3, 2021
1 parent b24c38a commit d77dc01
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions cdk.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"app": "npx ts-node --project tsconfig.jest.json src/integ.default.ts",
"context": {
"@aws-cdk/core:enableStackNameDuplicates": "true",
"aws-cdk:enableDiffNoFail": "true",
"@aws-cdk/core:stackRelativeExports": "true",
"@aws-cdk/core:enableStackNameDuplicates": true,
"aws-cdk:enableDiffNoFail": true,
"@aws-cdk/core:stackRelativeExports": true,
"@aws-cdk/core:newStyleStackSynthesis": true
}
}
2 changes: 1 addition & 1 deletion src/custom-stack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ export class CustomStack extends core.Stack {
constructor(scope: core.Construct, id: string, props?: core.StackProps) {
super(scope, id, props);

new core.CfnOutput(scope, 'CommitID', { value: process.env.CODEBUILD_RESOLVED_SOURCE_VERSION || 'not set!' });
new core.CfnOutput(this, 'CommitID', { value: process.env.CODEBUILD_RESOLVED_SOURCE_VERSION || 'not set!' });
};
}

0 comments on commit d77dc01

Please sign in to comment.