diff --git a/packages/@cdktf/provider-generator/lib/get/generator/resource-parser.ts b/packages/@cdktf/provider-generator/lib/get/generator/resource-parser.ts index 671ca8c69c..efe142b532 100644 --- a/packages/@cdktf/provider-generator/lib/get/generator/resource-parser.ts +++ b/packages/@cdktf/provider-generator/lib/get/generator/resource-parser.ts @@ -575,7 +575,7 @@ class Parser { let attributes = new Array(); const parent = scope[scope.length - 1]; if (attrs) { - for (const [terraformName, att] of Object.entries(attrs)) { + for (const [terraformName, att] of Object.entries(attrs || {})) { // nested types support computed, optional and required on attribute level // if parent is computed, child always is computed as well const computed =