Skip to content

(aws-cdk-lib.aws_lambda): First lambda autoscaling example has incorrect import #33593

Open
@mpetito-envative

Description

@mpetito-envative

Describe the issue

The first lambda autoscaling example has an incorrect import. Instead of importing from aws-cdk-lib/aws-autoscaling it should instead be importing from aws-cdk-lib/aws-applicationautoscaling.

The use of the Schedule class from the autoscaling lib generates a string value that will synth but produces incompatible cron expressions for the Schedule attribute since they will not be wrapped with cron(...).

Links

https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_lambda-readme.html#autoscaling

Metadata

Metadata

Assignees

No one assigned

    Labels

    @aws-cdk/aws-lambdaRelated to AWS LambdadocumentationThis is a problem with documentation.effort/smallSmall work item – less than a day of effortp2

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions