Skip to content

Commit 4a8f8de

Browse files
fix(core): enabled to include global resources worldwide (#355)
* Enable Config recorder global resources worldwide
1 parent 7cd51d8 commit 4a8f8de

File tree

1 file changed

+2
-4
lines changed
  • src/core/runtime/src/create-config-recorder

1 file changed

+2
-4
lines changed

src/core/runtime/src/create-config-recorder/create.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,6 @@ export const handler = async (input: ConfigServiceInput): Promise<string[]> => {
121121
configService,
122122
accountId,
123123
region,
124-
centralSecurityRegion,
125124
roleArn: configRecorderRole.roleArn,
126125
});
127126
errors.push(...createConfig);
@@ -192,11 +191,10 @@ async function createConfigRecorder(props: {
192191
configService: ConfigService;
193192
accountId: string;
194193
region: string;
195-
centralSecurityRegion: string;
196194
roleArn: string;
197195
}): Promise<string[]> {
198196
const errors: string[] = [];
199-
const { accountId, centralSecurityRegion, configService, region, roleArn, configRecorderName } = props;
197+
const { accountId, configService, region, roleArn, configRecorderName } = props;
200198
console.log('in createConfigRecorder function', region);
201199
// Create Config Recorder
202200
try {
@@ -206,7 +204,7 @@ async function createConfigRecorder(props: {
206204
roleARN: roleArn,
207205
recordingGroup: {
208206
allSupported: true,
209-
includeGlobalResourceTypes: region === centralSecurityRegion ? true : false,
207+
includeGlobalResourceTypes: true,
210208
},
211209
},
212210
});

0 commit comments

Comments
 (0)