Describe the bug
|
readonly installLatestAwsSdk?: boolean; |
This function triggers a straight npm install which generally would timeout in China regions.
|
function installLatestSdk(packageName: string): void { |
This is not a bug we just need some workaround for it.
Expected Behavior
installLatestSdk would not timeout
Current Behavior
would timeout
Reproduction Steps
set installLatestAwsSdk to true in custom resource
Workaround
Set installLatestAwsSdk: false or the feature flag @aws-cdk/customresources:installLatestAwsSdkDefault to false.
See: https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.custom_resources.AwsCustomResource.html#installlatestawssdk
Possible Solution
I guess China users might need to use npm proxy or alternative mirrors to work it around.
Additional Information/Context
No response
CDK CLI Version
2.100.0
Framework Version
No response
Node.js Version
v18.16.0
OS
linux
Language
TypeScript
Language Version
No response
Other information
No response
Describe the bug
aws-cdk/packages/aws-cdk-lib/custom-resources/lib/aws-custom-resource/aws-custom-resource.ts
Line 351 in 3f6401c
This function triggers a straight
npm installwhich generally would timeout in China regions.aws-cdk/packages/@aws-cdk/custom-resource-handlers/lib/custom-resources/aws-custom-resource-handler/aws-sdk-v3-handler.ts
Line 24 in 671b760
This is not a bug we just need some workaround for it.
Expected Behavior
installLatestSdk would not timeout
Current Behavior
would timeout
Reproduction Steps
set installLatestAwsSdk to true in custom resource
Workaround
Set
installLatestAwsSdk: falseor the feature flag@aws-cdk/customresources:installLatestAwsSdkDefaulttofalse.See: https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.custom_resources.AwsCustomResource.html#installlatestawssdk
Possible Solution
I guess China users might need to use npm proxy or alternative mirrors to work it around.
Additional Information/Context
No response
CDK CLI Version
2.100.0
Framework Version
No response
Node.js Version
v18.16.0
OS
linux
Language
TypeScript
Language Version
No response
Other information
No response