Skip to content

(aws-stepfunctions-tasks/evaluate-expression): Support configuring the lambda architecture #34974

@BalmungSan

Description

@BalmungSan

Describe the feature

Currently, the EvaluateExpression supports specifying the desired Runtime for the underlying Lambda, but not Architecture; which defaults to x86_64.
Thus, the proposal is to allow configuring the underlying Lambda Architecture.

Use Case

We are currently migrating all our lambdas to run on arm64, and this is the only kind of Lambdas that we can't control.
And while this does not matter that much when deploying the real infrastructure, it does affect our integration test using localstack.

We run those on a private arm64 GHA runner, and all lambdas but these ones run without issues.
Right now, we are able to circumvent the issue by using the LAMBDA_IGNORE_ARCHITECTURE configuration, but we would rather have control over this for consistency and simplicity.

Proposed Solution

It's just a matter of exposing an optional property on the EvaluateExpressionProps and in the EvalNodejsSingletonFunctionProps to configure the Architecture, and default to x86_64 to maintain compatibility.

I will open a PR shortly with a sketch of the solution: #34975

Other Information

No response

Acknowledgements

  • I may be able to implement this feature request
  • This feature might incur a breaking change

AWS CDK Library version (aws-cdk-lib)

2.203.1

AWS CDK CLI version

2.1020.1

Environment details (OS name and version, etc.)

Linux / Mac | ARM64

Metadata

Metadata

Assignees

No one assigned

    Labels

    @aws-cdk/aws-lambdaRelated to AWS Lambdaeffort/mediumMedium work item – several days of effortfeature-requestA feature should be added or improved.p2

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions