Skip to content

Commit

Permalink
feat: set cfn doc name as name on object (#49)
Browse files Browse the repository at this point in the history
  • Loading branch information
ZachBien authored Nov 10, 2022
1 parent 4665d74 commit bd77955
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/document/ssm-document.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ export abstract class SsmDocument extends Construct {
return JSON.parse(JSON.stringify(doc));
},
}),
name: this.documentName,
documentFormat: isYaml ? 'YAML' : 'JSON',
documentType: this.documentType(),
tags: [{ key: 'CdkGenerated', value: 'true' }, ...(this.props.tags || [])],
Expand Down
1 change: 1 addition & 0 deletions test/document/stack-cfn.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ describe('AutomationDocument', function () {
MyAutomationDocC39268E9: {
Type: 'AWS::SSM::Document',
Properties: {
Name: 'MyDoc',
Content: {
description: 'MyDoc',
schemaVersion: '0.3',
Expand Down

0 comments on commit bd77955

Please sign in to comment.