Commit 771ea13
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- packages
- @aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test
- integ.evaluate-expression-architecture.js.snapshot
- asset.b8cec122f25692e8b194663d25a2ee5e0b65e55df966120791d6a3ddc08fc136
- integ.evaluate-expression-arm64.js.snapshot
- asset.b8cec122f25692e8b194663d25a2ee5e0b65e55df966120791d6a3ddc08fc136
- integ.evaluate-expression-default-arch.js.snapshot
- asset.b8cec122f25692e8b194663d25a2ee5e0b65e55df966120791d6a3ddc08fc136
- integ.evaluate-expression-default-runtime.js.snapshot
- integ.evaluate-expression-default.js.snapshot
- asset.b8cec122f25692e8b194663d25a2ee5e0b65e55df966120791d6a3ddc08fc136
- integ.evaluate-expression-mixed-arch.js.snapshot
- asset.b8cec122f25692e8b194663d25a2ee5e0b65e55df966120791d6a3ddc08fc136
- integ.evaluate-expression-nodejs22.js.snapshot
- integ.evaluate-expression-runtime-and-arch.js.snapshot
- asset.b8cec122f25692e8b194663d25a2ee5e0b65e55df966120791d6a3ddc08fc136
- integ.evaluate-expression-x86.js.snapshot
- asset.b8cec122f25692e8b194663d25a2ee5e0b65e55df966120791d6a3ddc08fc136
- integ.evaluate-expression.js.snapshot
- aws-cdk-lib/aws-stepfunctions-tasks
- lib
- test
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 changedSome generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments