Skip to content

Commit 0a52ef6

Browse files
authored
Added RemediationAccount to SC EC2.1 (#143)
1 parent fa181de commit 0a52ef6

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

source/playbooks/SC/ssmdocs/SC_EC2.1.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,12 @@ class MakeEBSSnapshotsPrivateDocument extends ControlRunbookDocument {
4141
protected getParseInputStepOutputs(): Output[] {
4242
const outputs: Output[] = super.getParseInputStepOutputs();
4343

44+
outputs.push({
45+
name: 'RemediationAccount',
46+
outputType: DataTypeEnum.STRING,
47+
selector: '$.Payload.account_id',
48+
});
49+
4450
outputs.push({
4551
name: 'TestMode',
4652
outputType: DataTypeEnum.BOOLEAN,

source/playbooks/SC/test/__snapshots__/security_controls_stack.test.ts.snap

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5914,6 +5914,11 @@ def parse_event(event, _):
59145914
"Selector": "$.Payload.object",
59155915
"Type": "StringMap",
59165916
},
5917+
{
5918+
"Name": "RemediationAccount",
5919+
"Selector": "$.Payload.account_id",
5920+
"Type": "String",
5921+
},
59175922
{
59185923
"Name": "TestMode",
59195924
"Selector": "$.Payload.testmode",

0 commit comments

Comments
 (0)