diff --git a/packages/@aws-cdk/cloudformation-diff/lib/diff/util.ts b/packages/@aws-cdk/cloudformation-diff/lib/diff/util.ts index ff9eb3bb90e48..1c320996e6c5b 100644 --- a/packages/@aws-cdk/cloudformation-diff/lib/diff/util.ts +++ b/packages/@aws-cdk/cloudformation-diff/lib/diff/util.ts @@ -184,5 +184,5 @@ function database(): SpecDatabase { * The database is loaded lazily and cached across multiple calls to `loadResourceModel`. */ export function loadResourceModel(type: string): Resource | undefined { - return database().lookup('resource', 'cloudFormationType', 'equals', type).at(0); + return database().lookup('resource', 'cloudFormationType', 'equals', type)[0]; }