Skip to content

Commit 771ea13

Browse files
authored
feat(stepfunctions-tasks): add architecture support to EvaluateExpression (#35468)
### Issue # (if applicable) Closes #34974 ### Reason for this change Adding an optional architecture parameter to EvaluateExpressionProps which allows users to specify their desired architecture when using the EvaluateExpression construct. This enables support for ARM64 Lambda functions, which can provide better price-performance for certain workloads. ### Description of changes - Add optional architecture parameter to EvaluateExpressionProps - Support ARM_64 and X86_64 Lambda architectures - Add comprehensive unit and integration tests - Update documentation with usage examples - Pass architecture parameter through to EvalNodejsSingletonFunction ### Describe any new or updated permissions being added No new or updated IAM permissions are required. The existing Lambda invoke permissions remain unchanged as the architecture parameter only affects the Lambda function configuration, not the required permissions. ### Description of how you validated changes - Added unit tests covering both ARM_64 and X86_64 architectures - Created integration tests for ARM64, X86_64, and default (no value specified) architecture scenarios - Verified CloudFormation templates generate correct architecture specifications - Tested that existing functionality remains unchanged when architecture is not specified (defaults to X86_64) ### Checklist - [x] My code adheres to the [CONTRIBUTING GUIDE](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md) and [DESIGN GUIDELINES](https://github.com/aws/aws-cdk/blob/main/docs/DESIGN_GUIDELINES.md) ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
1 parent dc21826 commit 771ea13

File tree

76 files changed

+8484
-7
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

76 files changed

+8484
-7
lines changed

packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/integ.evaluate-expression-architecture.js.snapshot/EvaluateExpressionArchitectureTestDefaultTestDeployAssertB98654A9.assets.json

Lines changed: 20 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/integ.evaluate-expression-architecture.js.snapshot/EvaluateExpressionArchitectureTestDefaultTestDeployAssertB98654A9.template.json

Lines changed: 36 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/integ.evaluate-expression-architecture.js.snapshot/asset.b8cec122f25692e8b194663d25a2ee5e0b65e55df966120791d6a3ddc08fc136/index.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/integ.evaluate-expression-architecture.js.snapshot/aws-cdk-sfn-evaluate-expression-architecture-integ.assets.json

Lines changed: 34 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)