From 7995c2262d34949ea49ff8e9c4ea381b60c9b548 Mon Sep 17 00:00:00 2001 From: nachundu Date: Mon, 24 Aug 2020 23:15:55 +0530 Subject: [PATCH] enabled to include global resources worldwide --- src/core/runtime/src/create-config-recorder/create.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/core/runtime/src/create-config-recorder/create.ts b/src/core/runtime/src/create-config-recorder/create.ts index ef3a454da..f20e3a8d3 100644 --- a/src/core/runtime/src/create-config-recorder/create.ts +++ b/src/core/runtime/src/create-config-recorder/create.ts @@ -121,7 +121,6 @@ export const handler = async (input: ConfigServiceInput): Promise => { configService, accountId, region, - centralSecurityRegion, roleArn: configRecorderRole.roleArn, }); errors.push(...createConfig); @@ -192,11 +191,10 @@ async function createConfigRecorder(props: { configService: ConfigService; accountId: string; region: string; - centralSecurityRegion: string; roleArn: string; }): Promise { const errors: string[] = []; - const { accountId, centralSecurityRegion, configService, region, roleArn, configRecorderName } = props; + const { accountId, configService, region, roleArn, configRecorderName } = props; console.log('in createConfigRecorder function', region); // Create Config Recorder try { @@ -206,7 +204,7 @@ async function createConfigRecorder(props: { roleARN: roleArn, recordingGroup: { allSupported: true, - includeGlobalResourceTypes: region === centralSecurityRegion ? true : false, + includeGlobalResourceTypes: true, }, }, });