Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(aws-cdk-lib): Build fails due to "string-width"@"^4.2.3" package #26319

Closed
wongni opened this issue Jul 11, 2023 · 5 comments
Closed

(aws-cdk-lib): Build fails due to "string-width"@"^4.2.3" package #26319

wongni opened this issue Jul 11, 2023 · 5 comments
Labels
aws-cdk-lib Related to the aws-cdk-lib package bug This issue is a bug. needs-triage This issue or PR still needs to be triaged.

Comments

@wongni
Copy link

wongni commented Jul 11, 2023

Describe the bug

I just cloned the repo and tried to build, but it failed.

  1. npm i -g yarn
  2. yarn install
  3. npx lerna run build --scope=aws-cdk-lib

Error I got

10: 0x15d9e59  [/local/home/wonkun/.nvm/versions/node/v16.20.1/bin/node]
Error: /local/home/wonkun/workspace/AWSSSOOIDCServiceCDK/src/aws-cdk/tools/@aws-cdk/cdk-build-tools/node_modules/jsii/bin/jsii --silence-warnings=reserved-word --add-deprecation-warnings --compress-assembly '--strip-deprecated /local/home/wonkun/workspace/AWSSSOOIDCServiceCDK/src/aws-cdk/deprecated_apis.txt' exited with error code null
Build failed.!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

 —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————

 >  Lerna (powered by Nx)   Ran target build for project aws-cdk-lib and 10 task(s) they depend on (5m)
 
    ✖    1/11 failed
    ✔    10/11 succeeded [0 read from cache]

I ran the JSII command in the error message and I got this message.

% /local/home/wonkun/workspace/AWSSSOOIDCServiceCDK/src/aws-cdk/tools/@aws-cdk/cdk-build-tools/node_modules/jsii/bin/jsii --silence-warnings=reserved-word --add-deprecation
-warnings --compress-assembly '--strip-deprecated /local/home/wonkun/workspace/AWSSSOOIDCServiceCDK/src/aws-cdk/deprecated_apis.txt' 
[2023-07-11T15:42:15.277] [ERROR] jsii/package-info - Unable to find a JSII dependency named "string-width" as "^4.2.3". If you meant to include a non-JSII dependency, try adding it to bundledDependencies instead.
jsii compile [PROJECT_ROOT]

Compiles a jsii/TypeScript project

Positionals:
  PROJECT_ROOT  The root of the project to be compiled   [string] [default: "."]

Options:
      --help                      Show help                            [boolean]
      --version                   Show version number                  [boolean]
  -w, --watch                     Watch for file changes and recompile
                                  automatically                        [boolean]
  -r, --project-references        Generate TypeScript project references (also
                                  [package.json].jsii.projectReferences)
                                                                       [boolean]
      --fail-on-warnings, --Werr  Treat warnings as errors             [boolean]
      --silence-warnings          List of warnings to silence (warnings:
                                  reserved-word)           [array] [default: []]
      --strip-deprecated          [EXPERIMENTAL] Hides all @deprecated members
                                  from the API (implementations remain). If an
                                  optional file name is given, only FQNs present
                                  in the file will be stripped.         [string]
      --add-deprecation-warnings  [EXPERIMENTAL] Injects warning statements for
                                  all deprecated elements, to be printed at
                                  runtime             [boolean] [default: false]
      --generate-tsconfig         Name of the typescript configuration file to
                                  generate with compiler settings
                                             [string] [default: "tsconfig.json"]
      --compress-assembly         Emit a compressed version of the assembly
                                                      [boolean] [default: false]
  -v, --verbose                   Increase the verbosity of output       [count]

Error: Unable to locate jsii assembly for "string-width". If this module is not jsii-enabled, it must also be declared under bundledDependencies: Error: Expected to find .jsii file in /local/home/wonkun/workspace/AWSSSOOIDCServiceCDK/src/aws-cdk/node_modules/string-width, but no such file found
    at _tryResolveAssembly (/local/home/wonkun/workspace/AWSSSOOIDCServiceCDK/src/aws-cdk/tools/@aws-cdk/cdk-build-tools/node_modules/jsii/lib/project-info.js:259:15)
    at DependencyResolver.resolveDependency (/local/home/wonkun/workspace/AWSSSOOIDCServiceCDK/src/aws-cdk/tools/@aws-cdk/cdk-build-tools/node_modules/jsii/lib/project-info.js:192:26)
    at DependencyResolver.discoverDependencyTree (/local/home/wonkun/workspace/AWSSSOOIDCServiceCDK/src/aws-cdk/tools/@aws-cdk/cdk-build-tools/node_modules/jsii/lib/project-info.js:152:33)
    at loadProjectInfo (/local/home/wonkun/workspace/AWSSSOOIDCServiceCDK/src/aws-cdk/tools/@aws-cdk/cdk-build-tools/node_modules/jsii/lib/project-info.js:49:31)
    at Object.handler (/local/home/wonkun/workspace/AWSSSOOIDCServiceCDK/src/aws-cdk/tools/@aws-cdk/cdk-build-tools/node_modules/jsii/lib/main.js:81:105)
    at /local/home/wonkun/workspace/AWSSSOOIDCServiceCDK/src/aws-cdk/tools/@aws-cdk/cdk-build-tools/node_modules/jsii/node_modules/yargs/build/index.cjs:1:8993
    at j (/local/home/wonkun/workspace/AWSSSOOIDCServiceCDK/src/aws-cdk/tools/@aws-cdk/cdk-build-tools/node_modules/jsii/node_modules/yargs/build/index.cjs:1:4956)
    at _.handleValidationAndGetResult (/local/home/wonkun/workspace/AWSSSOOIDCServiceCDK/src/aws-cdk/tools/@aws-cdk/cdk-build-tools/node_modules/jsii/node_modules/yargs/build/index.cjs:1:8962)
    at _.applyMiddlewareAndGetResult (/local/home/wonkun/workspace/AWSSSOOIDCServiceCDK/src/aws-cdk/tools/@aws-cdk/cdk-build-tools/node_modules/jsii/node_modules/yargs/build/index.cjs:1:9604)
    at _.runCommand (/local/home/wonkun/workspace/AWSSSOOIDCServiceCDK/src/aws-cdk/tools/@aws-cdk/cdk-build-tools/node_modules/jsii/node_modules/yargs/build/index.cjs:1:7231)

I also tried v2.87.0 branch but it had the same issue.

Expected Behavior

Build works

Current Behavior

Build fails

Reproduction Steps

  1. npm i -g yarn
  2. yarn install
  3. npx lerna run build --scope=aws-cdk-lib

Possible Solution

No response

Additional Information/Context

No response

CDK CLI Version

2.85.0 (build 4e0d726)

Framework Version

No response

Node.js Version

v16.20.1

OS

Linux and MacOS (M1)

Language

Typescript

Language Version

Typescript(5.1.3)

Other information

No response

@wongni wongni added bug This issue is a bug. needs-triage This issue or PR still needs to be triaged. labels Jul 11, 2023
@github-actions github-actions bot added the aws-cdk-lib Related to the aws-cdk-lib package label Jul 11, 2023
@wongni wongni changed the title (aws-cdk-lib): Build fails (aws-cdk-lib): Build fails due to "string-width"@"^4.2.3" package Jul 11, 2023
@MrArnoldPalmer
Copy link
Contributor

MrArnoldPalmer commented Jul 11, 2023

hey @wongni, I'm not able to get the same error. I have a suspicion that the error you are seeing is because you're running JSII in the incorrect directory. Instead of running JSII yourself, run npx lerna run build --scope aws-cdk-lib --verbose. If you get an EBADF failure, run the same with --skip-nx-cache, ie npx lerna run build --scope aws-cdk-lib --skip-nx-cache. There is an issue with the nx cache on certain ARM macs that --skip-nx-cache fixes.

@wongni
Copy link
Author

wongni commented Jul 11, 2023

Hi @MrArnoldPalmer, with --vervose option I got this error.

<--- JS stacktrace --->
WARNING: Unable to represent attribute type {"PrimitiveType":"Json"} as a native type
<--- Last few GCs --->
[48420:0x138040000]   121278 ms: Mark-sweep 3988.0 (4137.7) -> 3978.5 (4144.0) MB, 1625.9 / 0.0 ms  (average mu = 0.422, current mu = 0.017) allocation failure; scavenge might not succeed
[48420:0x138040000]   122696 ms: Mark-sweep 3979.1 (4144.0) -> 3978.6 (4144.2) MB, 1417.2 / 0.0 ms  (average mu = 0.251, current mu = 0.001) allocation failure; GC in old space requested
<--- JS stacktrace --->
FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory

So I executed export NODE_OPTIONS=--max-old-space-size=4096 before build (Reference: https://www.makeuseof.com/javascript-heap-out-of-memory-error-fix/#:~:text=This%20error%20usually%20occurs%20when,a%20Linux%20distribution%20like%20Ubuntu.)

However, I am still not able to build. Here is the full with --verbose.

% npx lerna run build --scope aws-cdk-lib --verbose
lerna notice cli v7.0.2
lerna verb packageConfigs Explicit "packages" configuration found in lerna.json. Resolving packages using the configured glob(s): ["packages/aws-cdk-lib","packages/cdk-assets","packages/aws-cdk","packages/cdk","packages/@aws-cdk/*","packages/awslint","packages/@aws-cdk-containers/*","packages/@aws-cdk-testing/*","packages/@aws-cdk/*/lambda-packages/*","tools/@aws-cdk/cdk-build-tools","tools/@aws-cdk/cdk-release","tools/@aws-cdk/cfn2ts","tools/@aws-cdk/eslint-plugin","tools/@aws-cdk/node-bundle","tools/@aws-cdk/pkglint","tools/@aws-cdk/pkgtools","tools/@aws-cdk/prlint","tools/@aws-cdk/spec2cdk","tools/@aws-cdk/yarn-cling","scripts/@aws-cdk/script-tests"]
lerna verb rootPath /Users/wonkun/ws/IdC-RBA/aruba/AWSSSOOIDCServiceCDK/src/aws-cdk
lerna notice filter including "aws-cdk-lib"
lerna info filter [ 'aws-cdk-lib' ]
lerna verb run Nx target configuration was found. Task dependencies will be automatically included.

 >  Lerna (powered by Nx)   Running target build for project aws-cdk-lib and 10 tasks it depends on:

 ———————————————————————————————————————————————————————————————————————————————————————————————

> aws-cdk-lib:build

yarn run v1.22.19
$ cdk-build
x fixtures/
x fixtures/symlinks/
x fixtures/test1/
x fixtures/test1/external-link.txt
x fixtures/test1/file1.txt
x fixtures/test1/local-link.txt
x fixtures/test1/subdir/
x fixtures/test1/subdir2/
x fixtures/test1/subdir2/empty-subdir/
x fixtures/test1/subdir2/subdir3/
x fixtures/test1/subdir2/subdir3/file3.txt
x fixtures/test1/subdir2/empty-subdir/.hidden
x fixtures/test1/subdir/file2.txt
x fixtures/symlinks/external-dir-link
x fixtures/symlinks/external-link.txt
x fixtures/symlinks/indirect-external-link.txt
x fixtures/symlinks/local-dir-link
x fixtures/symlinks/local-link.txt
x fixtures/symlinks/normal-dir/
x fixtures/symlinks/normal-file.txt
x fixtures/symlinks/normal-dir/file-in-subdir.txt
dist/aws-ecr/auto-delete-images-handler dist/aws-s3/auto-delete-objects-handler
WARNING: Unable to represent attribute type {"PrimitiveType":"Boolean"} as a native type
WARNING: Unable to represent attribute type {"PrimitiveType":"Boolean"} as a native type
WARNING: Unable to represent attribute type {"PrimitiveType":"Boolean"} as a native type
WARNING: Unable to represent attribute type {"PrimitiveType":"Double"} as a native type
WARNING: Unable to represent attribute type {"PrimitiveType":"Boolean"} as a native type
WARNING: Unable to represent attribute type {"PrimitiveType":"Boolean"} as a native type
WARNING: Unable to represent attribute type {"PrimitiveType":"Boolean"} as a native type
WARNING: Unable to represent attribute type {"PrimitiveType":"Json"} as a native type
WARNING: Unable to represent attribute type {"PrimitiveType":"Boolean"} as a native type
WARNING: Unable to represent attribute type {"PrimitiveType":"Boolean"} as a native type
WARNING: Unable to represent attribute type {"PrimitiveType":"Boolean"} as a native type
WARNING: Unable to represent attribute type {"ItemType":"AlternatePathHint","Type":"List"} as a native type
WARNING: Unable to represent attribute type {"ItemType":"Explanation","Type":"List"} as a native type
WARNING: Unable to represent attribute type {"ItemType":"PathComponent","Type":"List"} as a native type
WARNING: Unable to represent attribute type {"PrimitiveType":"Boolean"} as a native type
WARNING: Unable to represent attribute type {"ItemType":"PathComponent","Type":"List"} as a native type
WARNING: Unable to represent attribute type {"PrimitiveType":"Boolean"} as a native type
WARNING: Unable to represent attribute type {"PrimitiveType":"Boolean"} as a native type
WARNING: Unable to represent attribute type {"PrimitiveType":"Boolean"} as a native type
WARNING: Unable to represent attribute type {"PrimitiveType":"Boolean"} as a native type
WARNING: Unable to represent attribute type {"PrimitiveType":"Boolean"} as a native type
WARNING: Unable to represent attribute type {"PrimitiveType":"Boolean"} as a native type
WARNING: Unable to represent attribute type {"PrimitiveType":"Boolean"} as a native type
WARNING: Unable to represent attribute type {"PrimitiveType":"Boolean"} as a native type
WARNING: Unable to represent attribute type {"ItemType":"ServerCertificateSummary","Type":"List"} as a native type
WARNING: Unable to represent attribute type {"PrimitiveType":"Double"} as a native type
WARNING: Unable to represent attribute type {"PrimitiveType":"Double"} as a native type
WARNING: Unable to represent attribute type {"PrimitiveType":"Double"} as a native type
WARNING: Unable to represent attribute type {"PrimitiveType":"Double"} as a native type
WARNING: Unable to represent attribute type {"PrimitiveType":"Double"} as a native type
WARNING: Unable to represent attribute type {"PrimitiveType":"Double"} as a native type
WARNING: Unable to represent attribute type {"PrimitiveType":"Double"} as a native type
WARNING: Unable to represent attribute type {"PrimitiveType":"Double"} as a native type
WARNING: Unable to represent attribute type {"PrimitiveType":"Boolean"} as a native type
WARNING: Unable to represent attribute type {"PrimitiveType":"Boolean"} as a native type
WARNING: Unable to represent attribute type {"PrimitiveType":"Boolean"} as a native type
WARNING: Unable to represent attribute type {"PrimitiveItemType":"String","Type":"Map"} as a native type
WARNING: Unable to represent attribute type {"PrimitiveType":"Boolean"} as a native type
WARNING: Unable to represent attribute type {"PrimitiveType":"Boolean"} as a native type
WARNING: Unable to represent attribute type {"PrimitiveType":"Boolean"} as a native type
WARNING: Unable to represent attribute type {"PrimitiveType":"Boolean"} as a native type
WARNING: Unable to represent attribute type {"PrimitiveType":"Boolean"} as a native type
WARNING: Unable to represent attribute type {"PrimitiveType":"Boolean"} as a native type
WARNING: Unable to represent attribute type {"PrimitiveItemType":"String","Type":"Map"} as a native type
WARNING: Unable to represent attribute type {"PrimitiveType":"Boolean"} as a native type
WARNING: Unable to represent attribute type {"PrimitiveType":"Boolean"} as a native type
WARNING: Unable to represent attribute type {"PrimitiveType":"Boolean"} as a native type
WARNING: Unable to represent attribute type {"PrimitiveType":"Boolean"} as a native type
WARNING: Unable to represent attribute type {"PrimitiveType":"Boolean"} as a native type
WARNING: Unable to represent attribute type {"ItemType":"ConnectPeerBgpConfiguration","Type":"List"} as a native type
WARNING: Unable to represent attribute type {"ItemType":"CoreNetworkEdge","Type":"List"} as a native type
WARNING: Unable to represent attribute type {"ItemType":"CoreNetworkSegment","Type":"List"} as a native type
WARNING: Unable to represent attribute type {"PrimitiveItemType":"String","Type":"Map"} as a native type
WARNING: Unable to represent attribute type {"PrimitiveType":"Boolean"} as a native type
WARNING: Unable to represent attribute type {"PrimitiveType":"Boolean"} as a native type
WARNING: Unable to represent attribute type {"PrimitiveType":"Boolean"} as a native type
WARNING: Unable to represent attribute type {"PrimitiveType":"Double"} as a native type
WARNING: Unable to represent attribute type {"PrimitiveType":"Double"} as a native type
WARNING: Unable to represent attribute type {"ItemType":"VpcEndpoint","Type":"List"} as a native type
WARNING: Unable to represent attribute type {"PrimitiveType":"Boolean"} as a native type
WARNING: Unable to represent attribute type {"PrimitiveType":"Boolean"} as a native type
WARNING: Unable to represent attribute type {"ItemType":"AnalysisError","Type":"List"} as a native type
WARNING: Unable to represent attribute type {"ItemType":"Sheet","Type":"List"} as a native type
WARNING: Unable to represent attribute type {"ItemType":"DashboardError","Type":"List"} as a native type
WARNING: Unable to represent attribute type {"ItemType":"Sheet","Type":"List"} as a native type
WARNING: Unable to represent attribute type {"PrimitiveType":"Double"} as a native type
WARNING: Unable to represent attribute type {"PrimitiveType":"Double"} as a native type
WARNING: Unable to represent attribute type {"ItemType":"OutputColumn","Type":"List"} as a native type
WARNING: Unable to represent attribute type {"ItemType":"DataSetConfiguration","Type":"List"} as a native type
WARNING: Unable to represent attribute type {"ItemType":"TemplateError","Type":"List"} as a native type
WARNING: Unable to represent attribute type {"ItemType":"Sheet","Type":"List"} as a native type
WARNING: Unable to represent attribute type {"PrimitiveType":"Double"} as a native type
WARNING: Unable to represent attribute type {"ItemType":"ThemeError","Type":"List"} as a native type
WARNING: Unable to represent attribute type {"PrimitiveType":"Double"} as a native type
WARNING: Unable to represent attribute type {"ItemType":"NetworkInterface","Type":"List"} as a native type
WARNING: Unable to represent attribute type {"PrimitiveType":"Boolean"} as a native type
WARNING: Unable to represent attribute type {"ItemType":"NetworkInterface","Type":"List"} as a native type
WARNING: Unable to represent attribute type {"ItemType":"VpcSecurityGroup","Type":"List"} as a native type
WARNING: Unable to represent attribute type {"PrimitiveType":"Boolean"} as a native type
WARNING: Unable to represent attribute type {"PrimitiveType":"Boolean"} as a native type
WARNING: Unable to represent attribute type {"ItemType":"ConfigParameter","Type":"List"} as a native type
WARNING: Unable to represent attribute type {"ItemType":"VpcEndpoint","Type":"List"} as a native type
WARNING: Unable to represent attribute type {"PrimitiveType":"Boolean"} as a native type
WARNING: Unable to represent attribute type {"PrimitiveType":"Boolean"} as a native type
WARNING: Unable to represent attribute type {"ItemType":"ClusterEndpoint","Type":"List"} as a native type
WARNING: Unable to represent attribute type {"PrimitiveType":"Boolean"} as a native type
WARNING: Unable to represent attribute type {"ItemType":"TargetAddress","Type":"List"} as a native type
WARNING: Unable to represent attribute type {"PrimitiveType":"Boolean"} as a native type
WARNING: Unable to represent attribute type {"PrimitiveType":"Boolean"} as a native type
WARNING: Unable to represent attribute type {"PrimitiveType":"Boolean"} as a native type
WARNING: Unable to represent attribute type {"PrimitiveType":"Boolean"} as a native type
WARNING: Unable to represent attribute type {"PrimitiveType":"Boolean"} as a native type
WARNING: Unable to represent attribute type {"ItemType":"NetworkInterface","Type":"List"} as a native type
WARNING: Unable to represent attribute type {"PrimitiveItemType":"String","Type":"Map"} as a native type
WARNING: Unable to represent attribute type {"PrimitiveType":"Boolean"} as a native type
WARNING: Unable to represent attribute type {"ItemType":"ConnectionAliasAssociation","Type":"List"} as a native type
WARNING: Unable to represent attribute type {"PrimitiveType":"Boolean"} as a native type
WARNING: Unable to represent attribute type {"PrimitiveType":"Boolean"} as a native type
WARNING: Unable to represent attribute type {"PrimitiveType":"Boolean"} as a native type
WARNING: Unable to represent attribute type {"PrimitiveType":"Json"} as a native type
<--- Last few GCs --->
[50641:0x130040000]   114859 ms: Mark-sweep 3993.1 (4131.0) -> 3987.0 (4142.0) MB, 902.0 / 0.0 ms  (average mu = 0.628, current mu = 0.208) allocation failure; scavenge might not succeed
[50641:0x130040000]   116800 ms: Mark-sweep 4003.6 (4142.6) -> 3995.1 (4149.3) MB, 1915.2 / 0.0 ms  (average mu = 0.348, current mu = 0.013) allocation failure; scavenge might not succeed
<--- JS stacktrace --->
FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory
 1: 0x10076d4fc node::Abort() [/usr/local/bin/node]
 2: 0x10076d6ec node::ModifyCodeGenerationFromStrings(v8::Local<v8::Context>, v8::Local<v8::Value>, bool) [/usr/local/bin/node]
 3: 0x1008c30fc v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate*, char const*, bool) [/usr/local/bin/node]
 4: 0x100a6e088 v8::internal::EmbedderStackStateScope::EmbedderStackStateScope(v8::internal::Heap*, v8::internal::EmbedderStackStateScope::Origin, cppgc::EmbedderStackState) [/usr/local/bin/node]
 5: 0x100a6cb6c v8::internal::Heap::CollectGarbage(v8::internal::AllocationSpace, v8::internal::GarbageCollectionReason, v8::GCCallbackFlags) [/usr/local/bin/node]
 6: 0x100a60e14 v8::internal::HeapAllocator::AllocateRawWithLightRetrySlowPath(int, v8::internal::AllocationType, v8::internal::AllocationOrigin, v8::internal::AllocationAlignment) [/usr/local/bin/node]
 7: 0x100a61644 v8::internal::HeapAllocator::AllocateRawWithRetryOrFailSlowPath(int, v8::internal::AllocationType, v8::internal::AllocationOrigin, v8::internal::AllocationAlignment) [/usr/local/bin/node]
 8: 0x100a47478 v8::internal::Factory::NewFillerObject(int, v8::internal::AllocationAlignment, v8::internal::AllocationType, v8::internal::AllocationOrigin) [/usr/local/bin/node]
 9: 0x100dd72bc v8::internal::Runtime_AllocateInYoungGeneration(int, unsigned long*, v8::internal::Isolate*) [/usr/local/bin/node]
10: 0x10112104c Builtins_CEntry_Return1_DontSaveFPRegs_ArgvOnStack_NoBuiltinExit [/usr/local/bin/node]
11: 0x106d8e86c 
12: 0x1075b8d48 
13: 0x106762914 
14: 0x106c9a89c 
15: 0x1075202c0 
16: 0x106c6c4f0 
17: 0x106755198 
18: 0x106c9a89c 
19: 0x106c78f6c 
20: 0x1075f0bfc 
21: 0x106c6c0e8 
22: 0x1074e4bdc 
23: 0x1075d8cd0 
24: 0x106755134 
25: 0x106c9a89c 
26: 0x106d0a54c 
27: 0x106e1c2f4 
28: 0x1075f04c0 
29: 0x1072ec658 
30: 0x106e19374 
31: 0x106c92764 
32: 0x106ca1d64 
33: 0x106c91430 
34: 0x106d0da7c 
35: 0x10676b050 
36: 0x1010ac198 Builtins_InterpreterEntryTrampoline [/usr/local/bin/node]
37: 0x1010ac198 Builtins_InterpreterEntryTrampoline [/usr/local/bin/node]
38: 0x1010ac198 Builtins_InterpreterEntryTrampoline [/usr/local/bin/node]
39: 0x1010ac198 Builtins_InterpreterEntryTrampoline [/usr/local/bin/node]
40: 0x1010ac198 Builtins_InterpreterEntryTrampoline [/usr/local/bin/node]
41: 0x1010ac198 Builtins_InterpreterEntryTrampoline [/usr/local/bin/node]
42: 0x1010ac198 Builtins_InterpreterEntryTrampoline [/usr/local/bin/node]
43: 0x1010ac198 Builtins_InterpreterEntryTrampoline [/usr/local/bin/node]
44: 0x1010ac198 Builtins_InterpreterEntryTrampoline [/usr/local/bin/node]
45: 0x1010ac198 Builtins_InterpreterEntryTrampoline [/usr/local/bin/node]
46: 0x1010ac198 Builtins_InterpreterEntryTrampoline [/usr/local/bin/node]
47: 0x1010ac198 Builtins_InterpreterEntryTrampoline [/usr/local/bin/node]
48: 0x1010ac198 Builtins_InterpreterEntryTrampoline [/usr/local/bin/node]
49: 0x1010ac198 Builtins_InterpreterEntryTrampoline [/usr/local/bin/node]
50: 0x1010ac198 Builtins_InterpreterEntryTrampoline [/usr/local/bin/node]
51: 0x1010ac198 Builtins_InterpreterEntryTrampoline [/usr/local/bin/node]
52: 0x1010ddef4 Builtins_AsyncFunctionAwaitResolveClosure [/usr/local/bin/node]
53: 0x10116c738 Builtins_PromiseFulfillReactionJob [/usr/local/bin/node]
54: 0x1010cfc4c Builtins_RunMicrotasks [/usr/local/bin/node]
55: 0x1010aa3a4 Builtins_JSRunMicrotasksEntry [/usr/local/bin/node]
56: 0x1009ef82c v8::internal::(anonymous namespace)::Invoke(v8::internal::Isolate*, v8::internal::(anonymous namespace)::InvokeParams const&) [/usr/local/bin/node]
57: 0x1009efd1c v8::internal::(anonymous namespace)::InvokeWithTryCatch(v8::internal::Isolate*, v8::internal::(anonymous namespace)::InvokeParams const&) [/usr/local/bin/node]
58: 0x1009efef8 v8::internal::Execution::TryRunMicrotasks(v8::internal::Isolate*, v8::internal::MicrotaskQueue*, v8::internal::MaybeHandle<v8::internal::Object>*) [/usr/local/bin/node]
59: 0x100a16644 v8::internal::MicrotaskQueue::RunMicrotasks(v8::internal::Isolate*) [/usr/local/bin/node]
60: 0x100a16edc v8::internal::MicrotaskQueue::PerformCheckpoint(v8::Isolate*) [/usr/local/bin/node]
61: 0x100933a1c v8::internal::FunctionCallbackArguments::Call(v8::internal::CallHandlerInfo) [/usr/local/bin/node]
62: 0x100933518 v8::internal::MaybeHandle<v8::internal::Object> v8::internal::(anonymous namespace)::HandleApiCallHelper<false>(v8::internal::Isolate*, v8::internal::Handle<v8::internal::HeapObject>, v8::internal::Handle<v8::internal::HeapObject>, v8::internal::Handle<v8::internal::FunctionTemplateInfo>, v8::internal::Handle<v8::internal::Object>, v8::internal::BuiltinArguments) [/usr/local/bin/node]
63: 0x100932d44 v8::internal::Builtin_HandleApiCall(int, unsigned long*, v8::internal::Isolate*) [/usr/local/bin/node]
64: 0x10112118c Builtins_CEntry_Return1_DontSaveFPRegs_ArgvOnStack_BuiltinExit [/usr/local/bin/node]
65: 0x1010ac198 Builtins_InterpreterEntryTrampoline [/usr/local/bin/node]
66: 0x1010aa4d0 Builtins_JSEntryTrampoline [/usr/local/bin/node]
67: 0x1010aa164 Builtins_JSEntry [/usr/local/bin/node]
68: 0x1009ef85c v8::internal::(anonymous namespace)::Invoke(v8::internal::Isolate*, v8::internal::(anonymous namespace)::InvokeParams const&) [/usr/local/bin/node]
69: 0x1009eed90 v8::internal::Execution::Call(v8::internal::Isolate*, v8::internal::Handle<v8::internal::Object>, v8::internal::Handle<v8::internal::Object>, int, v8::internal::Handle<v8::internal::Object>*) [/usr/local/bin/node]
70: 0x1008df124 v8::Function::Call(v8::Local<v8::Context>, v8::Local<v8::Value>, int, v8::Local<v8::Value>*) [/usr/local/bin/node]
71: 0x1006bcd0c node::InternalCallbackScope::Close() [/usr/local/bin/node]
72: 0x1006bcfd8 node::InternalMakeCallback(node::Environment*, v8::Local<v8::Object>, v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*, node::async_context) [/usr/local/bin/node]
73: 0x1006d1d34 node::AsyncWrap::MakeCallback(v8::Local<v8::Function>, int, v8::Local<v8::Value>*) [/usr/local/bin/node]
74: 0x1008200bc node::StreamBase::CallJSOnreadMethod(long, v8::Local<v8::ArrayBuffer>, unsigned long, node::StreamBase::StreamBaseJSChecks) [/usr/local/bin/node]
75: 0x100821774 node::EmitToJSStreamListener::OnStreamRead(long, uv_buf_t const&) [/usr/local/bin/node]
76: 0x1008924bc node::crypto::TLSWrap::ClearOut() [/usr/local/bin/node]
77: 0x1008941b8 node::crypto::TLSWrap::OnStreamRead(long, uv_buf_t const&) [/usr/local/bin/node]
78: 0x100825750 node::LibuvStreamWrap::OnUvRead(long, uv_buf_t const*) [/usr/local/bin/node]
79: 0x100825eec node::LibuvStreamWrap::ReadStart()::$_1::__invoke(uv_stream_s*, long, uv_buf_t const*) [/usr/local/bin/node]
80: 0x101096e8c uv__stream_io [/usr/local/bin/node]
81: 0x10109efa4 uv__io_poll [/usr/local/bin/node]
82: 0x10108ccd0 uv_run [/usr/local/bin/node]
83: 0x1006bd6f4 node::SpinEventLoop(node::Environment*) [/usr/local/bin/node]
84: 0x1007aa8ec node::NodeMainInstance::Run() [/usr/local/bin/node]
85: 0x10073a028 node::LoadSnapshotDataAndRun(node::SnapshotData const**, node::InitializationResult const*) [/usr/local/bin/node]
86: 0x10073a2b4 node::Start(int, char**) [/usr/local/bin/node]
87: 0x19ab03f28 start [/usr/lib/dyld]
Error: /Users/wonkun/ws/IdC-RBA/aruba/AWSSSOOIDCServiceCDK/src/aws-cdk/tools/@aws-cdk/cdk-build-tools/node_modules/jsii/bin/jsii --silence-warnings=reserved-word --add-deprecation-warnings --compress-assembly '--strip-deprecated /Users/wonkun/ws/IdC-RBA/aruba/AWSSSOOIDCServiceCDK/src/aws-cdk/deprecated_apis.txt' exited with error code null
Build failed.!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

 ———————————————————————————————————————————————————————————————————————————————————————————————

 >  Lerna (powered by Nx)   Running target build for project aws-cdk-lib and 10 tasks it depends on failed

   Failed tasks:
   
   - aws-cdk-lib:build
   
   Hint: run the command with --verbose for more details.

I also tried with --skip-nx-cache option but still fails with the following error.

% npx lerna run build --scope aws-cdk-lib --verbose --skip-nx-cache
lerna notice cli v7.0.2
lerna verb packageConfigs Explicit "packages" configuration found in lerna.json. Resolving packages using the configured glob(s): ["packages/aws-cdk-lib","packages/cdk-assets","packages/aws-cdk","packages/cdk","packages/@aws-cdk/*","packages/awslint","packages/@aws-cdk-containers/*","packages/@aws-cdk-testing/*","packages/@aws-cdk/*/lambda-packages/*","tools/@aws-cdk/cdk-build-tools","tools/@aws-cdk/cdk-release","tools/@aws-cdk/cfn2ts","tools/@aws-cdk/eslint-plugin","tools/@aws-cdk/node-bundle","tools/@aws-cdk/pkglint","tools/@aws-cdk/pkgtools","tools/@aws-cdk/prlint","tools/@aws-cdk/spec2cdk","tools/@aws-cdk/yarn-cling","scripts/@aws-cdk/script-tests"]
lerna verb rootPath /Users/wonkun/ws/IdC-RBA/aruba/AWSSSOOIDCServiceCDK/src/aws-cdk
lerna notice filter including "aws-cdk-lib"
lerna info filter [ 'aws-cdk-lib' ]
lerna verb run Nx target configuration was found. Task dependencies will be automatically included.

 >  Lerna (powered by Nx)   Running target build for project aws-cdk-lib and 10 tasks it depends on:

 ———————————————————————————————————————————————————————————————————————————————————————————————

> @aws-cdk/eslint-plugin:build

yarn run v1.22.19
$ tsc --build
Done in 0.33s.

> @aws-cdk/node-bundle:build

yarn run v1.22.19
$ projen build
👾 build » compile | tsc --build
Done in 3.02s.

> @aws-cdk/pkglint:build

yarn run v1.22.19
$ tsc -b && eslint . --ext=.ts && chmod +x bin/pkglint
DeprecationWarning: 'originalKeywordKind' has been deprecated since v5.0.0 and will no longer be usable after v5.2.0. Use 'identifierToKeywordKind(identifier)' instead.
Done in 1.93s.

> @aws-cdk/yarn-cling:build

yarn run v1.22.19
$ tsc
Done in 0.87s.

> awslint:build

yarn run v1.22.19
$ tsc -b && eslint . --ext=.ts && pkglint && chmod +x bin/awslint
DeprecationWarning: 'originalKeywordKind' has been deprecated since v5.0.0 and will no longer be usable after v5.2.0. Use 'identifierToKeywordKind(identifier)' instead.
Done in 2.05s.

> @aws-cdk/cdk-build-tools:build

yarn run v1.22.19
$ tsc -b && chmod +x bin/cdk-build && chmod +x bin/cdk-test && chmod +x bin/cdk-watch && chmod +x bin/cdk-awslint && chmod +x bin/cdk-lint && pkglint && eslint . --ext=.ts
DeprecationWarning: 'originalKeywordKind' has been deprecated since v5.0.0 and will no longer be usable after v5.2.0. Use 'identifierToKeywordKind(identifier)' instead.
Done in 1.81s.

> @aws-cdk/custom-resource-handlers:build

yarn run v1.22.19
$ tsc -b && node scripts/minify-and-bundle-sources.js
Done in 0.49s.

> @aws-cdk/spec2cdk:build

yarn run v1.22.19
$ cdk-build
DeprecationWarning: 'originalKeywordKind' has been deprecated since v5.0.0 and will no longer be usable after v5.2.0. Use 'identifierToKeywordKind(identifier)' instead.
Build times for @aws-cdk/spec2cdk: Total time (2.3s) | /Users/wonkun/ws/IdC-RBA/aruba/AWSSSOOIDCServiceCDK/src/aws-cdk/node_modules/typescript/bin/tsc (0.1s)
Done in 2.52s.

> @aws-cdk/cfnspec:build

yarn run v1.22.19
$ cdk-build && ts-node --preferTsExts build-tools/build.ts
DeprecationWarning: 'originalKeywordKind' has been deprecated since v5.0.0 and will no longer be usable after v5.2.0. Use 'identifierToKeywordKind(identifier)' instead.
Build times for @aws-cdk/cfnspec: Total time (2.2s) | /Users/wonkun/ws/IdC-RBA/aruba/AWSSSOOIDCServiceCDK/src/aws-cdk/node_modules/typescript/bin/tsc (0.1s)
000_official/000_AWS_ACMPCA.json
000_official/000_AWS_APS.json
000_official/000_AWS_AccessAnalyzer.json
000_official/000_AWS_AmazonMQ.json
000_official/000_AWS_Amplify.json
000_official/000_AWS_AmplifyUIBuilder.json
000_official/000_AWS_ApiGateway.json
000_official/000_AWS_ApiGatewayV2.json
000_official/000_AWS_AppConfig.json
000_official/000_AWS_AppFlow.json
000_official/000_AWS_AppIntegrations.json
000_official/000_AWS_AppMesh.json
000_official/000_AWS_AppRunner.json
000_official/000_AWS_AppStream.json
000_official/000_AWS_AppSync.json
000_official/000_AWS_ApplicationAutoScaling.json
000_official/000_AWS_ApplicationInsights.json
000_official/000_AWS_Athena.json
000_official/000_AWS_AuditManager.json
000_official/000_AWS_AutoScaling.json
000_official/000_AWS_AutoScalingPlans.json
000_official/000_AWS_Backup.json
000_official/000_AWS_BackupGateway.json
000_official/000_AWS_Batch.json
000_official/000_AWS_BillingConductor.json
000_official/000_AWS_Budgets.json
000_official/000_AWS_CE.json
000_official/000_AWS_CUR.json
000_official/000_AWS_Cassandra.json
000_official/000_AWS_CertificateManager.json
000_official/000_AWS_Chatbot.json
000_official/000_AWS_CleanRooms.json
000_official/000_AWS_Cloud9.json
000_official/000_AWS_CloudFormation.json
000_official/000_AWS_CloudFront.json
000_official/000_AWS_CloudTrail.json
000_official/000_AWS_CloudWatch.json
000_official/000_AWS_CodeArtifact.json
000_official/000_AWS_CodeBuild.json
000_official/000_AWS_CodeCommit.json
000_official/000_AWS_CodeDeploy.json
000_official/000_AWS_CodeGuruProfiler.json
000_official/000_AWS_CodeGuruReviewer.json
000_official/000_AWS_CodePipeline.json
000_official/000_AWS_CodeStar.json
000_official/000_AWS_CodeStarConnections.json
000_official/000_AWS_CodeStarNotifications.json
000_official/000_AWS_Cognito.json
000_official/000_AWS_Comprehend.json
000_official/000_AWS_Config.json
000_official/000_AWS_Connect.json
000_official/000_AWS_ConnectCampaigns.json
000_official/000_AWS_ControlTower.json
000_official/000_AWS_CustomerProfiles.json
000_official/000_AWS_DAX.json
000_official/000_AWS_DLM.json
000_official/000_AWS_DMS.json
000_official/000_AWS_DataBrew.json
000_official/000_AWS_DataPipeline.json
000_official/000_AWS_DataSync.json
000_official/000_AWS_Detective.json
000_official/000_AWS_DevOpsGuru.json
000_official/000_AWS_DirectoryService.json
000_official/000_AWS_DocDB.json
000_official/000_AWS_DocDBElastic.json
000_official/000_AWS_DynamoDB.json
000_official/000_AWS_EC2.json
000_official/000_AWS_ECR.json
000_official/000_AWS_ECS.json
000_official/000_AWS_EFS.json
000_official/000_AWS_EKS.json
000_official/000_AWS_EMR.json
000_official/000_AWS_EMRContainers.json
000_official/000_AWS_EMRServerless.json
000_official/000_AWS_ElastiCache.json
000_official/000_AWS_ElasticBeanstalk.json
000_official/000_AWS_ElasticLoadBalancing.json
000_official/000_AWS_ElasticLoadBalancingV2.json
000_official/000_AWS_Elasticsearch.json
000_official/000_AWS_EventSchemas.json
000_official/000_AWS_Events.json
000_official/000_AWS_Evidently.json
000_official/000_AWS_FIS.json
000_official/000_AWS_FMS.json
000_official/000_AWS_FSx.json
000_official/000_AWS_FinSpace.json
000_official/000_AWS_Forecast.json
000_official/000_AWS_FraudDetector.json
000_official/000_AWS_GameLift.json
000_official/000_AWS_GlobalAccelerator.json
000_official/000_AWS_Glue.json
000_official/000_AWS_Grafana.json
000_official/000_AWS_Greengrass.json
000_official/000_AWS_GreengrassV2.json
000_official/000_AWS_GroundStation.json
000_official/000_AWS_GuardDuty.json
000_official/000_AWS_HealthLake.json
000_official/000_AWS_IAM.json
000_official/000_AWS_IVS.json
000_official/000_AWS_IVSChat.json
000_official/000_AWS_IdentityStore.json
000_official/000_AWS_ImageBuilder.json
000_official/000_AWS_Inspector.json
000_official/000_AWS_InspectorV2.json
000_official/000_AWS_InternetMonitor.json
000_official/000_AWS_IoT.json
000_official/000_AWS_IoT1Click.json
000_official/000_AWS_IoTAnalytics.json
000_official/000_AWS_IoTCoreDeviceAdvisor.json
000_official/000_AWS_IoTEvents.json
000_official/000_AWS_IoTFleetHub.json
000_official/000_AWS_IoTFleetWise.json
000_official/000_AWS_IoTSiteWise.json
000_official/000_AWS_IoTThingsGraph.json
000_official/000_AWS_IoTTwinMaker.json
000_official/000_AWS_IoTWireless.json
000_official/000_AWS_KMS.json
000_official/000_AWS_KafkaConnect.json
000_official/000_AWS_Kendra.json
000_official/000_AWS_KendraRanking.json
000_official/000_AWS_Kinesis.json
000_official/000_AWS_KinesisAnalytics.json
000_official/000_AWS_KinesisAnalyticsV2.json
000_official/000_AWS_KinesisFirehose.json
000_official/000_AWS_KinesisVideo.json
000_official/000_AWS_LakeFormation.json
000_official/000_AWS_Lambda.json
000_official/000_AWS_Lex.json
000_official/000_AWS_LicenseManager.json
000_official/000_AWS_Lightsail.json
000_official/000_AWS_Location.json
000_official/000_AWS_Logs.json
000_official/000_AWS_LookoutEquipment.json
000_official/000_AWS_LookoutMetrics.json
000_official/000_AWS_LookoutVision.json
000_official/000_AWS_M2.json
000_official/000_AWS_MSK.json
000_official/000_AWS_MWAA.json
000_official/000_AWS_Macie.json
000_official/000_AWS_ManagedBlockchain.json
000_official/000_AWS_MediaConnect.json
000_official/000_AWS_MediaConvert.json
000_official/000_AWS_MediaLive.json
000_official/000_AWS_MediaPackage.json
000_official/000_AWS_MediaStore.json
000_official/000_AWS_MediaTailor.json
000_official/000_AWS_MemoryDB.json
000_official/000_AWS_Neptune.json
000_official/000_AWS_NetworkFirewall.json
000_official/000_AWS_NetworkManager.json
000_official/000_AWS_NimbleStudio.json
000_official/000_AWS_OSIS.json
000_official/000_AWS_Oam.json
000_official/000_AWS_Omics.json
000_official/000_AWS_OpenSearchServerless.json
000_official/000_AWS_OpenSearchService.json
000_official/000_AWS_OpsWorks.json
000_official/000_AWS_OpsWorksCM.json
000_official/000_AWS_Organizations.json
000_official/000_AWS_Panorama.json
000_official/000_AWS_Personalize.json
000_official/000_AWS_Pinpoint.json
000_official/000_AWS_PinpointEmail.json
000_official/000_AWS_Pipes.json
000_official/000_AWS_Proton.json
000_official/000_AWS_QLDB.json
000_official/000_AWS_QuickSight.json
000_official/000_AWS_RAM.json
000_official/000_AWS_RDS.json
000_official/000_AWS_RUM.json
000_official/000_AWS_Redshift.json
000_official/000_AWS_RedshiftServerless.json
000_official/000_AWS_RefactorSpaces.json
000_official/000_AWS_Rekognition.json
000_official/000_AWS_ResilienceHub.json
000_official/000_AWS_ResourceExplorer2.json
000_official/000_AWS_ResourceGroups.json
000_official/000_AWS_RoboMaker.json
000_official/000_AWS_RolesAnywhere.json
000_official/000_AWS_Route53.json
000_official/000_AWS_Route53RecoveryControl.json
000_official/000_AWS_Route53RecoveryReadiness.json
000_official/000_AWS_Route53Resolver.json
000_official/000_AWS_S3.json
000_official/000_AWS_S3ObjectLambda.json
000_official/000_AWS_S3Outposts.json
000_official/000_AWS_SDB.json
000_official/000_AWS_SES.json
000_official/000_AWS_SNS.json
000_official/000_AWS_SQS.json
000_official/000_AWS_SSM.json
000_official/000_AWS_SSMContacts.json
000_official/000_AWS_SSMIncidents.json
000_official/000_AWS_SSO.json
000_official/000_AWS_SageMaker.json
000_official/000_AWS_Scheduler.json
000_official/000_AWS_SecretsManager.json
000_official/000_AWS_SecurityHub.json
000_official/000_AWS_ServiceCatalog.json
000_official/000_AWS_ServiceCatalogAppRegistry.json
000_official/000_AWS_ServiceDiscovery.json
000_official/000_AWS_Shield.json
000_official/000_AWS_Signer.json
000_official/000_AWS_SimSpaceWeaver.json
000_official/000_AWS_StepFunctions.json
000_official/000_AWS_SupportApp.json
000_official/000_AWS_Synthetics.json
000_official/000_AWS_SystemsManagerSAP.json
000_official/000_AWS_Timestream.json
000_official/000_AWS_Transfer.json
000_official/000_AWS_VerifiedPermissions.json
000_official/000_AWS_VoiceID.json
000_official/000_AWS_VpcLattice.json
000_official/000_AWS_WAF.json
000_official/000_AWS_WAFRegional.json
000_official/000_AWS_WAFv2.json
000_official/000_AWS_Wisdom.json
000_official/000_AWS_WorkSpaces.json
000_official/000_AWS_XRay.json
000_official/000_Alexa_ASK.json
000_official/000_Tag.json
000_official/001_Version.json
000_cfn/000_official
000_cfn/200_Scrutinies_patch.json: Permission scrutiny
000_cfn/200_Scrutinies_patch.json: SNS: These are not IAM policies
000_cfn/200_Scrutinies_patch.json: SQS: Not an IAM policy
000_cfn/200_Scrutinies_patch.json: SecurityGroup: Mark ingress/egress rules
000_cfn/200_Scrutinies_patch.json: SecurityGroupIngress: Mark ingress rules
000_cfn/200_Scrutinies_patch.json: SecurityGroupEgress: Mark egress rules
000_cfn/500_AWS_AppIntegrations_EventIntegration_EventFilter_patch.json: Remove incorrect PrimitiveType
000_cfn/500_CloudWatch_Alarm_MetricDataQuery_Period_patch.json: Add Period to AWS::CloudWatch::Alarm.MetricDataQuery (#7155)
000_cfn/500_Cognito_IdentityPoolRoleAttachment_patches.json: make the use of RoleMappings more type safe
000_cfn/500_ECS_Options_Types_patch.json: Remove AWS::ECS::TaskDefinition.Options, replace back with Map<String>
000_cfn/500_ImageBuilder_JsonTypes_patch.json: These types were once typed as Json, and adding types now is a breaking change. Keep them as Json forever.
000_cfn/500_IoT1Click_patch_PlacementTemplate_DeviceTemplates.json: Set type of AWS::IoT1Click::Project.PlacementTemplate.DeviceTemplates to Map<String, AWS::IoT1Click::Project.DeviceTemplate>
000_cfn/500_NetworkAclEntry_patch.json: https:/aws/aws-cdk/issues/1517
000_cfn/500_Revert_To_Json_Types_patch.json: This patch fixes all types that were previously typed as Json, and CfnSpec v101.0.0 added types to them, which is a breaking change.
000_cfn/500_Revert_To_Json_Types_patch.json: This patch fixes all types that were previously typed as Json, and CfnSpec v101.0.0 added types to them, which is a breaking change.
000_cfn/500_Revert_To_Json_Types_patch.json: This patch fixes all types that were previously typed as Json, and CfnSpec v101.0.0 added types to them, which is a breaking change.
000_cfn/500_Revert_To_Json_Types_patch.json: This patch fixes all types that were previously typed as Json, and CfnSpec v101.0.0 added types to them, which is a breaking change.
000_cfn/500_Revert_To_Json_Types_patch.json: This patch fixes all types that were previously typed as Json, and CfnSpec v101.0.0 added types to them, which is a breaking change.
000_cfn/500_Revert_To_Json_Types_patch.json: This patch fixes all types that were previously typed as Json, and CfnSpec v101.0.0 added types to them, which is a breaking change.
000_cfn/500_Revert_To_Json_Types_patch.json: This patch fixes all types that were previously typed as Json, and CfnSpec v101.0.0 added types to them, which is a breaking change.
000_cfn/500_Revert_To_Json_Types_patch.json: This patch fixes all types that were previously typed as Json, and CfnSpec v101.0.0 added types to them, which is a breaking change.
000_cfn/500_Revert_To_Json_Types_patch.json: This patch fixes all types that were previously typed as Json, and CfnSpec v101.0.0 added types to them, which is a breaking change.
000_cfn/500_Revert_To_Json_Types_patch.json: This patch fixes all types that were previously typed as Json, and CfnSpec v101.0.0 added types to them, which is a breaking change.
000_cfn/500_Revert_To_Json_Types_patch.json: This patch fixes all types that were previously typed as Json, and CfnSpec v101.0.0 added types to them, which is a breaking change.
000_cfn/500_Revert_To_Json_Types_patch.json: This patch fixes all types that were previously typed as Json, and CfnSpec v101.0.0 added types to them, which is a breaking change.
000_cfn/500_Revert_To_Json_Types_patch.json: This patch fixes all types that were previously typed as Json, and CfnSpec v101.0.0 added types to them, which is a breaking change.
000_cfn/500_Revert_To_Json_Types_patch.json: This patch fixes all types that were previously typed as Json, and CfnSpec v101.0.0 added types to them, which is a breaking change.
000_cfn/500_Revert_To_Json_Types_patch.json: This patch fixes all types that were previously typed as Json, and CfnSpec v101.0.0 added types to them, which is a breaking change.
000_cfn/500_Revert_To_Json_Types_patch.json: This patch fixes all types that were previously typed as Json, and CfnSpec v101.0.0 added types to them, which is a breaking change.
000_cfn/500_Revert_To_Json_Types_patch.json: This patch fixes all types that were previously typed as Json, and CfnSpec v101.0.0 added types to them, which is a breaking change.
000_cfn/500_Revert_To_Json_Types_patch.json: This patch fixes all types that were previously typed as Json, and CfnSpec v101.0.0 added types to them, which is a breaking change.
000_cfn/500_Revert_To_Json_Types_patch.json: This patch fixes all types that were previously typed as Json, and CfnSpec v101.0.0 added types to them, which is a breaking change.
000_cfn/500_Revert_To_Json_Types_patch.json: This patch fixes all types that were previously typed as Json, and CfnSpec v101.0.0 added types to them, which is a breaking change.
000_cfn/500_Revert_To_Json_Types_patch.json: This patch fixes all types that were previously typed as Json, and CfnSpec v101.0.0 added types to them, which is a breaking change.
000_cfn/500_Revert_To_Json_Types_patch.json: This patch fixes all types that were previously typed as Json, and CfnSpec v101.0.0 added types to them, which is a breaking change.
000_cfn/500_Revert_To_Json_Types_patch.json: This patch fixes all types that were previously typed as Json, and CfnSpec v101.0.0 added types to them, which is a breaking change.
000_cfn/500_Revert_To_Json_Types_patch.json: This patch fixes all types that were previously typed as Json, and CfnSpec v101.0.0 added types to them, which is a breaking change.
000_cfn/500_Revert_To_Json_Types_patch.json: This patch fixes all types that were previously typed as Json, and CfnSpec v101.0.0 added types to them, which is a breaking change.
000_cfn/500_Revert_To_Json_Types_patch.json: This patch fixes all types that were previously typed as Json, and CfnSpec v101.0.0 added types to them, which is a breaking change.
000_cfn/500_Revert_To_Json_Types_patch.json: This patch fixes all types that were previously typed as Json, and CfnSpec v101.0.0 added types to them, which is a breaking change.
000_cfn/500_Revert_To_Json_Types_patch.json: This patch fixes all types that were previously typed as Json, and CfnSpec v101.0.0 added types to them, which is a breaking change.
000_cfn/500_Revert_To_Json_Types_patch.json: This patch fixes all types that were previously typed as Json, and CfnSpec v101.0.0 added types to them, which is a breaking change.
000_cfn/500_Revert_To_Json_Types_patch.json: This patch fixes all types that were previously typed as Json, and CfnSpec v101.0.0 added types to them, which is a breaking change.
000_cfn/500_Revert_To_Json_Types_patch.json: This patch fixes all types that were previously typed as Json, and CfnSpec v101.0.0 added types to them, which is a breaking change.
000_cfn/500_Revert_To_Json_Types_patch.json: This patch fixes all types that were previously typed as Json, and CfnSpec v101.0.0 added types to them, which is a breaking change.
000_cfn/500_Revert_To_Json_Types_patch.json: This patch fixes all types that were previously typed as Json, and CfnSpec v101.0.0 added types to them, which is a breaking change.
000_cfn/500_Revert_To_Json_Types_patch.json: This patch fixes all types that were previously typed as Json, and CfnSpec v101.0.0 added types to them, which is a breaking change.
000_cfn/500_Revert_To_Json_Types_patch.json: This patch fixes all types that were previously typed as Json, and CfnSpec v101.0.0 added types to them, which is a breaking change.
000_cfn/500_Revert_To_Json_Types_patch.json: This patch fixes all types that were previously typed as Json, and CfnSpec v101.0.0 added types to them, which is a breaking change.
000_cfn/500_Revert_To_Json_Types_patch.json: This patch fixes all types that were previously typed as Json, and CfnSpec v101.0.0 added types to them, which is a breaking change.
000_cfn/500_Revert_To_Json_Types_patch.json: This patch fixes all types that were previously typed as Json, and CfnSpec v101.0.0 added types to them, which is a breaking change.
000_cfn/500_Revert_To_Json_Types_patch.json: This patch fixes all types that were previously typed as Json, and CfnSpec v101.0.0 added types to them, which is a breaking change.
000_cfn/500_Revert_To_Json_Types_patch.json: This patch fixes all types that were previously typed as Json, and CfnSpec v101.0.0 added types to them, which is a breaking change.
000_cfn/500_Revert_To_Json_Types_patch.json: This patch fixes all types that were previously typed as Json, and CfnSpec v101.0.0 added types to them, which is a breaking change.
000_cfn/500_Revert_To_Json_Types_patch.json: This patch fixes all types that were previously typed as Json, and CfnSpec v101.0.0 added types to them, which is a breaking change.
000_cfn/500_Revert_To_Json_Types_patch.json: This patch fixes all types that were previously typed as Json, and CfnSpec v101.0.0 added types to them, which is a breaking change.
000_cfn/500_Revert_To_Json_Types_patch.json: This patch fixes all types that were previously typed as Json, and CfnSpec v101.0.0 added types to them, which is a breaking change.
000_cfn/500_Revert_To_Json_Types_patch.json: This patch fixes all types that were previously typed as Json, and CfnSpec v101.0.0 added types to them, which is a breaking change.
000_cfn/500_Revert_To_Json_Types_patch.json: This patch fixes all types that were previously typed as Json, and CfnSpec v101.0.0 added types to them, which is a breaking change.
000_cfn/500_Revert_To_Json_Types_patch.json: This patch fixes all types that were previously typed as Json, and CfnSpec v101.0.0 added types to them, which is a breaking change.
000_cfn/500_SageMaker_ModelPackage_patch.json: Drop unrecognized and unnecessary singular Tag parameter
000_cfn/500_WAFv2_RuleGroup_Rename_Properties_patch.json: Reverting property type names from FooAction to Foo, which were introduced as part of this PR: https:/aws/aws-cdk/pull/23984
000_cfn/510_ElasticSearch_Domain_patches.json: remove the deprecated attribute DomainArn, as the new preferred attribute Arn maps to the same name in the generated code
000_cfn/520_ServiceDiscovery_InstanceAttributes_patch.json: Treat Map primitive type as Json
000_cfn/580_Kms_Key_KeyPolicy_patch.json: Primitive type does not exist at all for some reason and it should be Json
000_cfn/590_Ecr_RepositoryPolicyText_patch.json: Primitive type does not exist at all for some reason and it should be Json
000_cfn/599_DeletedPropertyTypes.json
000_cfn/600_Ecs_TaskDefinition_EFSVolumeConfiguration_AuthorizationConfig_patch.json: Primitive type should not exist because it already has a complex type of AuthorizationConfig
000_cfn/600_Renames_20230428_Batch_patch.json: Undoing upstream property type renames of Batch, XRay
000_cfn/600_Renames_20230630_patch.json: Undoing upstream property type renames introduced in 129.0.0
000_cfn/630_Ecs_Service_NetworkConfiguration_patch.json: resource is in CloudFormation Registry where property types are case insensitive. modifying property to previous casing to avoid breaking existing CDK users
000_cfn/640_Ecs_Service_AwsVpcConfiguration_Subnets_patch.json: Optionality was changed in v18.4 from true to false. We need to preserve it as compatibility checker will fail. Patch can be dropped when https:/aws/jsii/issues/2064 is closed
000_cfn/650_Ecs_Service_LoadBalancer_ContainerPort_patch.json: Optionality was changed in v18.4 from true to false. We need to preserve it as compatibility checker will fail. Patch can be dropped when https:/aws/jsii/issues/2064 is closed
000_cfn/660_Route53_HealthCheck_patch.json: Patch Route 53 HealthCheck casing regression - mirrors cfn-lint (https:/aws-cloudformation/cfn-python-lint/blob/master/src/cfnlint/data/ExtendedSpecs/all/01_spec_patch.json) 
000_cfn/660_Route53_HealthCheck_patch.json: Patch Route 53 HealthCheck casing regression - mirrors cfn-lint (https:/aws-cloudformation/cfn-python-lint/blob/master/src/cfnlint/data/ExtendedSpecs/all/01_spec_patch.json) 
000_cfn/670_MediaPackage_PackagingConfiguration_patch.json: missing type information for SpekeKeyProvider - mirrors patch in cfn-lint (https:/aws-cloudformation/cfn-python-lint/pull/1751)
000_cfn/680_AutoScaling_AutoScalingGroup_patch.json: remove (presumed accidentally included) new autoscaling group attributes
000_cfn/680_MediaPackage_Channel_patch.json: remove the unusable attribute HlsIngest, which represents a complex type and cannot be directly converted to a primitive type
000_cfn/700_DataBrew_patch.json: AWS::DataBrew::Recipe.Action.Parameters does not have a type
000_cfn/700_DataBrew_patch.json: AWS::DataBrew::Recipe.RecipeStep.Action has both PrimitiveType and Type
000_cfn/710_CodeArtifact_patch.json: Adds missing properties for AWS::CodeArtifact::Domain
000_cfn/710_CodeArtifact_patch.json: Adds missing properties for AWS::CodeArtifact::Repository
000_cfn/712_ECR_PubRepo_patch.json: Correct the missing type of the RepositoryPolicyText property for the AWS::ECR::PublicRepository resource type
000_cfn/713_ElastiCache_User_patch.json: Remove the Authentication and UserGroupIds attributes from the AWS::ElastiCache::User resource type, as they have a complex type
000_cfn/714_ElastiCache_UserGroup_patch.json: Remove the PendingChanges and ReplicationGroupIds attributes from the AWS::ElastiCache::UserGroup resource type, as they have a complex type
000_cfn/715_IotSiteWise_Portal_patch.json: Remove the PortalStatus attribute from the AWS::IoTSiteWise::Portal resource type, as it has a complex type
000_cfn/716_MWAA_Environment_patch.json: Remove the LastUpdate attribute from the AWS::MWAA::Environment resource type, as it has a complex type
000_cfn/717_SageMaker_Device_patch.json: Correct the AWS::SageMaker::Device resource type
000_cfn/718_SageMaker_DeviceFleet_patch.json: Correct the Tags definition for the AWS::SageMaker::DeviceFleet resource type
000_cfn/719_SageMaker_ModelPackageGroup_patch.json: Correct the missing type of the ModelPackageGroupPolicy property for the AWS::SageMaker::ModelPackageGroup resource type
000_cfn/720_QuickSight_Version_attribute_patch.json: Remove the Version attributes of AWS::QuickSight resources, as they have complex types
000_cfn/800_IoTWireless_ServicProfile_patch.json: Invalid attribute type for LoRaWANResponse
000_cfn/900_CloudFront_OriginShield_patch.json: Add Type to OriginShield property of AWS::CloudFront::Distribution.Origin
000_cfn/900_XRay_Tags_ItemType_patch.json: Rename ItemType to PrimitiveItemType for Tags property of AWS::XRay Group and SamplingRule resources
000_cfn/902_Lightsail_Instance_patch.json: Add type
000_cfn/903_OpenSearchService_Domain_patch.json: Remove the DomainArn attribute of AWS::OpenSearchService::Domain resources, as it is unsupported by CloudFormation
000_cfn/904_StateMachine_Types_patch.json: Revert primitive item type on DefinitionSubstitutions property to string
000_cfn/905_Lambda_SnapStart_patch.json: Properties for Lambda Function SnapStart
000_cfn/905_Lambda_SnapStart_patch.json: Updates to Lambda Function to support SnapStart
000_cfn/906_TimeStream_JsonTypes_patch.json: These types were once typed as Json, and adding types now is a breaking change. Keep them as Json forever.
000_cfn/910_ApiGatewayV2_Route_patch.json: Undoing upstream property type removal in ApiGatewayV2.
000_cfn/913_Synthetics_Canary_DeleteLambdaResourcesOnCanaryDeletion_patch.json: Undoing upstream property removal.
000_cfn/914_Neptune_DBCluster_Port_patch.json: Undoing upstream property removal. This was identified as a bug and will be fixed upstream in a future release.
spec-source/specification/000_cfn
000_official/000_AWS_DeviceFarm.json
000_official/001_Version.json
001_cfn_us-west-2/000_official
spec-source/specification/001_cfn_us-west-2
000_official/spec.json
100_sam/000_official
100_sam/100_sam.spec_DeploymentPreference_patch.json: Add DeploymentPreference for SAM
100_sam/100_sam.spec_DeploymentPreference_patch.json: Add the deployment preference for SAM Resource
100_sam/500_AWS_Serverless_AuthResourcePolicy_CustomStatements_patch.json: Replace incorrect PrimitiveItemType
100_sam/500_SAM_Serverless_Api_Authorizer_patch.json: Sets AWS::Serverless::Api.Auth#Authorizers to Json
100_sam/500_SAM_Serverless_Application_Location_patch.json: Renames PrimitiveType in AWS::Serverless::Application#Location to PrimitiveTypes
100_sam/500_SAM_Serverless_Function_DeploymentPreference_Hooks_patch.json: Replace AWS::Serverless::Function.DeploymentPreference#Hooks
100_sam/500_SAM_Serverless_Function_IAMPolicyDocument_patch.json: This was once typed as Json, and adding types now is a breaking change. Keep them as Json forever
100_sam/500_SAM_Serverless_Function_S3Event_Events_patch.json: Sets AWS::Serverless::Function.S3Event.Events#UpdateType to Immutable
100_sam/500_SAM_Serverless_Function_S3Location_Version_patch.json: Sets AWS::Serverless::Function.S3Location#Version.Required to false, per ttps:/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#s3-location-object
100_sam/500_SAM_Serverless_StateMachine_IAMPolicyDocument_patch.json: This was once typed as Json, and adding types now is a breaking change. Keep them as Json forever
100_sam/901_SAM_Api_EndpointConfiguration_patch.json: Make the EndpointConfiguration property of AWS::Serverless::Api have a union type
100_sam/902_SAM_Api_GatewayResponses_Models_patch.json: Make the GatewayResponses property of AWS::Serverless::Api accept JSON
100_sam/902_SAM_Api_GatewayResponses_Models_patch.json: Make the Models property of AWS::Serverless::Api accept JSON
100_sam/998_lift_transform_patch.json: AWS::Serverless::Api: Lift transform version to each resource
100_sam/998_lift_transform_patch.json: AWS::Serverless::Application: Lift transform version to each resource
100_sam/998_lift_transform_patch.json: AWS::Serverless::Function: Lift transform version to each resource
100_sam/998_lift_transform_patch.json: AWS::Serverless::HttpApi: Lift transform version to each resource
100_sam/998_lift_transform_patch.json: AWS::Serverless::LayerVersion: Lift transform version to each resource
100_sam/998_lift_transform_patch.json: AWS::Serverless::SimpleTable: Lift transform version to each resource
100_sam/998_lift_transform_patch.json: AWS::Serverless::StateMachine: Lift transform version to each resource
100_sam/999_cleanup_patch.json: Remove properties that conflict with the CFN spec
spec-source/specification/100_sam
StatefulResources/000.json
StatefulResources/001_patch.json: Move ResourceTypes here
spec-source/cfn-lint/StatefulResources
spec-source/cfn-docs/cfn-docs.json
Done in 4.06s.

> @aws-cdk/cfn2ts:build

yarn run v1.22.19
$ cdk-build
DeprecationWarning: 'originalKeywordKind' has been deprecated since v5.0.0 and will no longer be usable after v5.2.0. Use 'identifierToKeywordKind(identifier)' instead.
Build times for @aws-cdk/cfn2ts: Total time (2.0s) | /Users/wonkun/ws/IdC-RBA/aruba/AWSSSOOIDCServiceCDK/src/aws-cdk/node_modules/typescript/bin/tsc (0.1s)
Done in 2.15s.

> aws-cdk-lib:build

yarn run v1.22.19
$ cdk-build
x fixtures/
x fixtures/symlinks/
x fixtures/test1/
x fixtures/test1/external-link.txt
x fixtures/test1/file1.txt
x fixtures/test1/local-link.txt
x fixtures/test1/subdir/
x fixtures/test1/subdir2/
x fixtures/test1/subdir2/empty-subdir/
x fixtures/test1/subdir2/subdir3/
x fixtures/test1/subdir2/subdir3/file3.txt
x fixtures/test1/subdir2/empty-subdir/.hidden
x fixtures/test1/subdir/file2.txt
x fixtures/symlinks/external-dir-link
x fixtures/symlinks/external-link.txt
x fixtures/symlinks/indirect-external-link.txt
x fixtures/symlinks/local-dir-link
x fixtures/symlinks/local-link.txt
x fixtures/symlinks/normal-dir/
x fixtures/symlinks/normal-file.txt
x fixtures/symlinks/normal-dir/file-in-subdir.txt
dist/aws-ecr/auto-delete-images-handler dist/aws-s3/auto-delete-objects-handler
WARNING: Unable to represent attribute type {"PrimitiveType":"Boolean"} as a native type
WARNING: Unable to represent attribute type {"PrimitiveType":"Boolean"} as a native type
WARNING: Unable to represent attribute type {"PrimitiveType":"Boolean"} as a native type
WARNING: Unable to represent attribute type {"PrimitiveType":"Double"} as a native type
WARNING: Unable to represent attribute type {"PrimitiveType":"Boolean"} as a native type
WARNING: Unable to represent attribute type {"PrimitiveType":"Boolean"} as a native type
WARNING: Unable to represent attribute type {"PrimitiveType":"Boolean"} as a native type
WARNING: Unable to represent attribute type {"PrimitiveType":"Json"} as a native type
WARNING: Unable to represent attribute type {"PrimitiveType":"Boolean"} as a native type
WARNING: Unable to represent attribute type {"PrimitiveType":"Boolean"} as a native type
WARNING: Unable to represent attribute type {"PrimitiveType":"Boolean"} as a native type
WARNING: Unable to represent attribute type {"ItemType":"AlternatePathHint","Type":"List"} as a native type
WARNING: Unable to represent attribute type {"ItemType":"Explanation","Type":"List"} as a native type
WARNING: Unable to represent attribute type {"ItemType":"PathComponent","Type":"List"} as a native type
WARNING: Unable to represent attribute type {"PrimitiveType":"Boolean"} as a native type
WARNING: Unable to represent attribute type {"ItemType":"PathComponent","Type":"List"} as a native type
WARNING: Unable to represent attribute type {"PrimitiveType":"Boolean"} as a native type
WARNING: Unable to represent attribute type {"PrimitiveType":"Boolean"} as a native type
WARNING: Unable to represent attribute type {"PrimitiveType":"Boolean"} as a native type
WARNING: Unable to represent attribute type {"PrimitiveType":"Boolean"} as a native type
WARNING: Unable to represent attribute type {"PrimitiveType":"Boolean"} as a native type
WARNING: Unable to represent attribute type {"PrimitiveType":"Boolean"} as a native type
WARNING: Unable to represent attribute type {"PrimitiveType":"Boolean"} as a native type
WARNING: Unable to represent attribute type {"PrimitiveType":"Boolean"} as a native type
WARNING: Unable to represent attribute type {"ItemType":"ServerCertificateSummary","Type":"List"} as a native type
WARNING: Unable to represent attribute type {"PrimitiveType":"Double"} as a native type
WARNING: Unable to represent attribute type {"PrimitiveType":"Double"} as a native type
WARNING: Unable to represent attribute type {"PrimitiveType":"Double"} as a native type
WARNING: Unable to represent attribute type {"PrimitiveType":"Double"} as a native type
WARNING: Unable to represent attribute type {"PrimitiveType":"Double"} as a native type
WARNING: Unable to represent attribute type {"PrimitiveType":"Double"} as a native type
WARNING: Unable to represent attribute type {"PrimitiveType":"Double"} as a native type
WARNING: Unable to represent attribute type {"PrimitiveType":"Double"} as a native type
WARNING: Unable to represent attribute type {"PrimitiveType":"Boolean"} as a native type
WARNING: Unable to represent attribute type {"PrimitiveType":"Boolean"} as a native type
WARNING: Unable to represent attribute type {"PrimitiveType":"Boolean"} as a native type
WARNING: Unable to represent attribute type {"PrimitiveItemType":"String","Type":"Map"} as a native type
WARNING: Unable to represent attribute type {"PrimitiveType":"Boolean"} as a native type
WARNING: Unable to represent attribute type {"PrimitiveType":"Boolean"} as a native type
WARNING: Unable to represent attribute type {"PrimitiveType":"Boolean"} as a native type
WARNING: Unable to represent attribute type {"PrimitiveType":"Boolean"} as a native type
WARNING: Unable to represent attribute type {"PrimitiveType":"Boolean"} as a native type
WARNING: Unable to represent attribute type {"PrimitiveType":"Boolean"} as a native type
WARNING: Unable to represent attribute type {"PrimitiveItemType":"String","Type":"Map"} as a native type
WARNING: Unable to represent attribute type {"PrimitiveType":"Boolean"} as a native type
WARNING: Unable to represent attribute type {"PrimitiveType":"Boolean"} as a native type
WARNING: Unable to represent attribute type {"PrimitiveType":"Boolean"} as a native type
WARNING: Unable to represent attribute type {"PrimitiveType":"Boolean"} as a native type
WARNING: Unable to represent attribute type {"PrimitiveType":"Boolean"} as a native type
WARNING: Unable to represent attribute type {"ItemType":"ConnectPeerBgpConfiguration","Type":"List"} as a native type
WARNING: Unable to represent attribute type {"ItemType":"CoreNetworkEdge","Type":"List"} as a native type
WARNING: Unable to represent attribute type {"ItemType":"CoreNetworkSegment","Type":"List"} as a native type
WARNING: Unable to represent attribute type {"PrimitiveType":"Double"} as a native type
WARNING: Unable to represent attribute type {"PrimitiveType":"Double"} as a native type
WARNING: Unable to represent attribute type {"PrimitiveItemType":"String","Type":"Map"} as a native type
WARNING: Unable to represent attribute type {"PrimitiveType":"Boolean"} as a native type
WARNING: Unable to represent attribute type {"PrimitiveType":"Boolean"} as a native type
WARNING: Unable to represent attribute type {"PrimitiveType":"Boolean"} as a native type
WARNING: Unable to represent attribute type {"ItemType":"VpcEndpoint","Type":"List"} as a native type
WARNING: Unable to represent attribute type {"PrimitiveType":"Boolean"} as a native type
WARNING: Unable to represent attribute type {"PrimitiveType":"Boolean"} as a native type
WARNING: Unable to represent attribute type {"ItemType":"AnalysisError","Type":"List"} as a native type
WARNING: Unable to represent attribute type {"ItemType":"Sheet","Type":"List"} as a native type
WARNING: Unable to represent attribute type {"ItemType":"DashboardError","Type":"List"} as a native type
WARNING: Unable to represent attribute type {"ItemType":"Sheet","Type":"List"} as a native type
WARNING: Unable to represent attribute type {"PrimitiveType":"Double"} as a native type
WARNING: Unable to represent attribute type {"PrimitiveType":"Double"} as a native type
WARNING: Unable to represent attribute type {"ItemType":"OutputColumn","Type":"List"} as a native type
WARNING: Unable to represent attribute type {"ItemType":"DataSetConfiguration","Type":"List"} as a native type
WARNING: Unable to represent attribute type {"ItemType":"TemplateError","Type":"List"} as a native type
WARNING: Unable to represent attribute type {"ItemType":"Sheet","Type":"List"} as a native type
WARNING: Unable to represent attribute type {"PrimitiveType":"Double"} as a native type
WARNING: Unable to represent attribute type {"ItemType":"ThemeError","Type":"List"} as a native type
WARNING: Unable to represent attribute type {"PrimitiveType":"Double"} as a native type
WARNING: Unable to represent attribute type {"ItemType":"NetworkInterface","Type":"List"} as a native type
WARNING: Unable to represent attribute type {"PrimitiveType":"Boolean"} as a native type
WARNING: Unable to represent attribute type {"PrimitiveType":"Boolean"} as a native type
WARNING: Unable to represent attribute type {"ItemType":"NetworkInterface","Type":"List"} as a native type
WARNING: Unable to represent attribute type {"ItemType":"VpcSecurityGroup","Type":"List"} as a native type
WARNING: Unable to represent attribute type {"PrimitiveType":"Boolean"} as a native type
WARNING: Unable to represent attribute type {"ItemType":"ConfigParameter","Type":"List"} as a native type
WARNING: Unable to represent attribute type {"ItemType":"VpcEndpoint","Type":"List"} as a native type
WARNING: Unable to represent attribute type {"PrimitiveType":"Boolean"} as a native type
WARNING: Unable to represent attribute type {"PrimitiveType":"Boolean"} as a native type
WARNING: Unable to represent attribute type {"ItemType":"ClusterEndpoint","Type":"List"} as a native type
WARNING: Unable to represent attribute type {"PrimitiveType":"Boolean"} as a native type
WARNING: Unable to represent attribute type {"ItemType":"TargetAddress","Type":"List"} as a native type
WARNING: Unable to represent attribute type {"PrimitiveType":"Boolean"} as a native type
WARNING: Unable to represent attribute type {"PrimitiveType":"Boolean"} as a native type
WARNING: Unable to represent attribute type {"PrimitiveType":"Boolean"} as a native type
WARNING: Unable to represent attribute type {"PrimitiveType":"Boolean"} as a native type
WARNING: Unable to represent attribute type {"PrimitiveType":"Boolean"} as a native type
WARNING: Unable to represent attribute type {"ItemType":"NetworkInterface","Type":"List"} as a native type
WARNING: Unable to represent attribute type {"PrimitiveItemType":"String","Type":"Map"} as a native type
WARNING: Unable to represent attribute type {"PrimitiveType":"Boolean"} as a native type
WARNING: Unable to represent attribute type {"ItemType":"ConnectionAliasAssociation","Type":"List"} as a native type
WARNING: Unable to represent attribute type {"PrimitiveType":"Boolean"} as a native type
WARNING: Unable to represent attribute type {"PrimitiveType":"Boolean"} as a native type
WARNING: Unable to represent attribute type {"PrimitiveType":"Boolean"} as a native type
WARNING: Unable to represent attribute type {"PrimitiveType":"Json"} as a native type
<--- Last few GCs --->
[51941:0x130078000]   118494 ms: Mark-sweep 3996.3 (4133.7) -> 3989.2 (4143.0) MB, 953.3 / 0.0 ms  (average mu = 0.636, current mu = 0.123) allocation failure; scavenge might not succeed
[51941:0x130078000]   120095 ms: Mark-sweep 4005.7 (4143.6) -> 3996.3 (4149.8) MB, 1578.0 / 0.0 ms  (average mu = 0.380, current mu = 0.015) allocation failure; scavenge might not succeed
<--- JS stacktrace --->
FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory
 1: 0x1008a14fc node::Abort() [/usr/local/bin/node]
 2: 0x1008a16ec node::ModifyCodeGenerationFromStrings(v8::Local<v8::Context>, v8::Local<v8::Value>, bool) [/usr/local/bin/node]
 3: 0x1009f70fc v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate*, char const*, bool) [/usr/local/bin/node]
 4: 0x100ba2088 v8::internal::EmbedderStackStateScope::EmbedderStackStateScope(v8::internal::Heap*, v8::internal::EmbedderStackStateScope::Origin, cppgc::EmbedderStackState) [/usr/local/bin/node]
 5: 0x100ba0b6c v8::internal::Heap::CollectGarbage(v8::internal::AllocationSpace, v8::internal::GarbageCollectionReason, v8::GCCallbackFlags) [/usr/local/bin/node]
 6: 0x100b94e14 v8::internal::HeapAllocator::AllocateRawWithLightRetrySlowPath(int, v8::internal::AllocationType, v8::internal::AllocationOrigin, v8::internal::AllocationAlignment) [/usr/local/bin/node]
 7: 0x100b95644 v8::internal::HeapAllocator::AllocateRawWithRetryOrFailSlowPath(int, v8::internal::AllocationType, v8::internal::AllocationOrigin, v8::internal::AllocationAlignment) [/usr/local/bin/node]
 8: 0x100b7f154 v8::internal::Factory::NewContextInternal(v8::internal::Handle<v8::internal::Map>, int, int, v8::internal::AllocationType) [/usr/local/bin/node]
 9: 0x100b80498 v8::internal::Factory::NewBlockContext(v8::internal::Handle<v8::internal::Context>, v8::internal::Handle<v8::internal::ScopeInfo>) [/usr/local/bin/node]
10: 0x100f20774 v8::internal::Runtime_PushBlockContext(int, unsigned long*, v8::internal::Isolate*) [/usr/local/bin/node]
11: 0x10125504c Builtins_CEntry_Return1_DontSaveFPRegs_ArgvOnStack_NoBuiltinExit [/usr/local/bin/node]
12: 0x106e8cc30 
13: 0x106c714a8 
14: 0x106de0788 
15: 0x106c4de38 
16: 0x106d7277c 
17: 0x106ded62c 
18: 0x1077ded9c 
19: 0x106ddfea8 
20: 0x106e2c69c 
21: 0x106de2910 
22: 0x106c4ddd4 
23: 0x106d7277c 
24: 0x1076751ec 
25: 0x10765cb14 
26: 0x1077de660 
27: 0x1077e2f8c 
28: 0x1076670b4 
29: 0x106eac1e4 
30: 0x106d7ae84 
31: 0x106eaaeb0 
32: 0x106296ebc 
33: 0x106c61350 
34: 0x1011e0198 Builtins_InterpreterEntryTrampoline [/usr/local/bin/node]
35: 0x1011e0198 Builtins_InterpreterEntryTrampoline [/usr/local/bin/node]
36: 0x1011e0198 Builtins_InterpreterEntryTrampoline [/usr/local/bin/node]
37: 0x1011e0198 Builtins_InterpreterEntryTrampoline [/usr/local/bin/node]
38: 0x1011e0198 Builtins_InterpreterEntryTrampoline [/usr/local/bin/node]
39: 0x1011e0198 Builtins_InterpreterEntryTrampoline [/usr/local/bin/node]
40: 0x1011e0198 Builtins_InterpreterEntryTrampoline [/usr/local/bin/node]
41: 0x1011e0198 Builtins_InterpreterEntryTrampoline [/usr/local/bin/node]
42: 0x1011e0198 Builtins_InterpreterEntryTrampoline [/usr/local/bin/node]
43: 0x1011e0198 Builtins_InterpreterEntryTrampoline [/usr/local/bin/node]
44: 0x1011e0198 Builtins_InterpreterEntryTrampoline [/usr/local/bin/node]
45: 0x1011e0198 Builtins_InterpreterEntryTrampoline [/usr/local/bin/node]
46: 0x1011e0198 Builtins_InterpreterEntryTrampoline [/usr/local/bin/node]
47: 0x1011e0198 Builtins_InterpreterEntryTrampoline [/usr/local/bin/node]
48: 0x1011e0198 Builtins_InterpreterEntryTrampoline [/usr/local/bin/node]
49: 0x1011e0198 Builtins_InterpreterEntryTrampoline [/usr/local/bin/node]
50: 0x101211ef4 Builtins_AsyncFunctionAwaitResolveClosure [/usr/local/bin/node]
51: 0x1012a0738 Builtins_PromiseFulfillReactionJob [/usr/local/bin/node]
52: 0x101203c4c Builtins_RunMicrotasks [/usr/local/bin/node]
53: 0x1011de3a4 Builtins_JSRunMicrotasksEntry [/usr/local/bin/node]
54: 0x100b2382c v8::internal::(anonymous namespace)::Invoke(v8::internal::Isolate*, v8::internal::(anonymous namespace)::InvokeParams const&) [/usr/local/bin/node]
55: 0x100b23d1c v8::internal::(anonymous namespace)::InvokeWithTryCatch(v8::internal::Isolate*, v8::internal::(anonymous namespace)::InvokeParams const&) [/usr/local/bin/node]
56: 0x100b23ef8 v8::internal::Execution::TryRunMicrotasks(v8::internal::Isolate*, v8::internal::MicrotaskQueue*, v8::internal::MaybeHandle<v8::internal::Object>*) [/usr/local/bin/node]
57: 0x100b4a644 v8::internal::MicrotaskQueue::RunMicrotasks(v8::internal::Isolate*) [/usr/local/bin/node]
58: 0x100b4aedc v8::internal::MicrotaskQueue::PerformCheckpoint(v8::Isolate*) [/usr/local/bin/node]
59: 0x100a67a1c v8::internal::FunctionCallbackArguments::Call(v8::internal::CallHandlerInfo) [/usr/local/bin/node]
60: 0x100a67518 v8::internal::MaybeHandle<v8::internal::Object> v8::internal::(anonymous namespace)::HandleApiCallHelper<false>(v8::internal::Isolate*, v8::internal::Handle<v8::internal::HeapObject>, v8::internal::Handle<v8::internal::HeapObject>, v8::internal::Handle<v8::internal::FunctionTemplateInfo>, v8::internal::Handle<v8::internal::Object>, v8::internal::BuiltinArguments) [/usr/local/bin/node]
61: 0x100a66d44 v8::internal::Builtin_HandleApiCall(int, unsigned long*, v8::internal::Isolate*) [/usr/local/bin/node]
62: 0x10125518c Builtins_CEntry_Return1_DontSaveFPRegs_ArgvOnStack_BuiltinExit [/usr/local/bin/node]
63: 0x1011e0198 Builtins_InterpreterEntryTrampoline [/usr/local/bin/node]
64: 0x1011de4d0 Builtins_JSEntryTrampoline [/usr/local/bin/node]
65: 0x1011de164 Builtins_JSEntry [/usr/local/bin/node]
66: 0x100b2385c v8::internal::(anonymous namespace)::Invoke(v8::internal::Isolate*, v8::internal::(anonymous namespace)::InvokeParams const&) [/usr/local/bin/node]
67: 0x100b22d90 v8::internal::Execution::Call(v8::internal::Isolate*, v8::internal::Handle<v8::internal::Object>, v8::internal::Handle<v8::internal::Object>, int, v8::internal::Handle<v8::internal::Object>*) [/usr/local/bin/node]
68: 0x100a13124 v8::Function::Call(v8::Local<v8::Context>, v8::Local<v8::Value>, int, v8::Local<v8::Value>*) [/usr/local/bin/node]
69: 0x1007f0d0c node::InternalCallbackScope::Close() [/usr/local/bin/node]
70: 0x1007f0fd8 node::InternalMakeCallback(node::Environment*, v8::Local<v8::Object>, v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*, node::async_context) [/usr/local/bin/node]
71: 0x100805d34 node::AsyncWrap::MakeCallback(v8::Local<v8::Function>, int, v8::Local<v8::Value>*) [/usr/local/bin/node]
72: 0x1009540bc node::StreamBase::CallJSOnreadMethod(long, v8::Local<v8::ArrayBuffer>, unsigned long, node::StreamBase::StreamBaseJSChecks) [/usr/local/bin/node]
73: 0x100955774 node::EmitToJSStreamListener::OnStreamRead(long, uv_buf_t const&) [/usr/local/bin/node]
74: 0x1009c64bc node::crypto::TLSWrap::ClearOut() [/usr/local/bin/node]
75: 0x1009c81b8 node::crypto::TLSWrap::OnStreamRead(long, uv_buf_t const&) [/usr/local/bin/node]
76: 0x100959750 node::LibuvStreamWrap::OnUvRead(long, uv_buf_t const*) [/usr/local/bin/node]
77: 0x100959eec node::LibuvStreamWrap::ReadStart()::$_1::__invoke(uv_stream_s*, long, uv_buf_t const*) [/usr/local/bin/node]
78: 0x1011cae8c uv__stream_io [/usr/local/bin/node]
79: 0x1011d2fa4 uv__io_poll [/usr/local/bin/node]
80: 0x1011c0cd0 uv_run [/usr/local/bin/node]
81: 0x1007f16f4 node::SpinEventLoop(node::Environment*) [/usr/local/bin/node]
82: 0x1008de8ec node::NodeMainInstance::Run() [/usr/local/bin/node]
83: 0x10086e028 node::LoadSnapshotDataAndRun(node::SnapshotData const**, node::InitializationResult const*) [/usr/local/bin/node]
84: 0x10086e2b4 node::Start(int, char**) [/usr/local/bin/node]
85: 0x19ab03f28 start [/usr/lib/dyld]
Error: /Users/wonkun/ws/IdC-RBA/aruba/AWSSSOOIDCServiceCDK/src/aws-cdk/tools/@aws-cdk/cdk-build-tools/node_modules/jsii/bin/jsii --silence-warnings=reserved-word --add-deprecation-warnings --compress-assembly '--strip-deprecated /Users/wonkun/ws/IdC-RBA/aruba/AWSSSOOIDCServiceCDK/src/aws-cdk/deprecated_apis.txt' exited with error code null
Build failed.!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

 ———————————————————————————————————————————————————————————————————————————————————————————————

 >  Lerna (powered by Nx)   Running target build for project aws-cdk-lib and 10 tasks it depends on failed

   Failed tasks:
   
   - aws-cdk-lib:build
   
   Hint: run the command with --verbose for more details.

@MrArnoldPalmer
Copy link
Contributor

yeah, you will need to set to --max-old-space-size=8192. It's mentioned in the contributing guide but not super clearly (related to code catalyst usage?).

We are looking into trying to reduce memory usage during build btw.

Reopen this if you are still having issues.

@github-actions
Copy link

⚠️COMMENT VISIBILITY WARNING⚠️

Comments on closed issues are hard for our team to see.
If you need more assistance, please either tag a team member or open a new issue that references this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.

@wongni
Copy link
Author

wongni commented Jul 11, 2023

NODE_OPTIONS=--max-old-space-size=8192 npx lerna run build --scope=aws-cdk-lib --skip-nx-cache command works well for me in my macbook m1pro.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
aws-cdk-lib Related to the aws-cdk-lib package bug This issue is a bug. needs-triage This issue or PR still needs to be triaged.
Projects
None yet
Development

No branches or pull requests

2 participants