diff --git a/packages/aws-cdk/lib/import.ts b/packages/aws-cdk/lib/import.ts index f90e9853fb8a7..0b181247a44c5 100644 --- a/packages/aws-cdk/lib/import.ts +++ b/packages/aws-cdk/lib/import.ts @@ -290,7 +290,7 @@ export class ResourceImporter { for (const idProp of idProps) { // If we have a value from the template, use it as default. This will only be a partial // identifier if present, otherwise we would have done the import already above. - const defaultValue = typeof resourceProps[idProp] ?? ''; + const defaultValue = resourceProps[idProp] ?? ''; const prompt = [ promptPattern.replace(/%/g, chalk.blue(idProp)),