Skip to content

custom-resource: installLatestAwsSdk could timeout in China regions #27597

@pahud

Description

@pahud

Describe the bug

This function triggers a straight npm install which generally would timeout in China regions.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    @aws-cdk/custom-resourcesRelated to AWS CDK Custom ResourcesbugThis issue is a bug.effort/mediumMedium work item – several days of effortp2

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions