Add Support for Dynamic Execution Names in EventBridge Pipes for Step Functions
Describe the feature
Currently, the PipeTargetStateMachineParameters struct used in EventBridge Pipes only supports the InvocationType field. There is no way to optionally specify a dynamic name for the Step Function execution.
Use Case
I'm building a pipeline like this:
SQS -> EventBridge Pipe -> Step Function
I'd like to assign each Step Function execution a name derived from the message payload. For example, with a message containing:
{
"user_id": "12345",
"timestamp": "20250612"
}
I would want to generate an execution name like: execution-12345-20250612
Proposed Solution
Update the PipeTargetStateMachineParameters struct in the types.go file to include support for the optional Name field, which allows setting a dynamic Step Function execution name (with a maximum length of 80 characters, as enforced by the AWS API).
Other Information
No response
Acknowledgements
- [ ] I may be able to implement this feature request
- [ ] This feature might incur a breaking change
AWS Go SDK V2 Module Versions Used
github.com/aws/aws-sdk-go-v2 v1.36.3
Go version used
go version go1.23.10 linux/amd64
Don't know how you build your pipe in detail, but the execution name could be optionally set via your step function client when calling StartExecution https://github.com/aws/aws-sdk-go-v2/blob/5c12a3b4209ebed699b200c3eb7a795669753f43/service/sfn/api_op_StartExecution.go#L145
@wty-Bryant I use Terraform for CDK and while using pipes, it's possible to define target parameters. But while using a SFN as a target, the only parameter available for SFN is invocationType.
Could you show Go v2 code that you use to create EventBridge pipe and invoke step func execution
@wty-Bryant I don’t have a snippet right now, plus I usually write the infra in Python but here’s the CDK implementation in Go
https://pkg.go.dev/github.com/aws/aws-cdk-go/awscdk/v2/awspipes#CfnPipe
Where the TargetParameter can be defined
https://pkg.go.dev/github.com/aws/aws-cdk-go/awscdk/v2/awspipes#CfnPipe_PipeTargetStateMachineParametersProperty
On Mon 16. Jun 2025 at 20:20, Eren Yeager @.***> wrote:
wty-Bryant left a comment (aws/aws-sdk-go-v2#3113) https://github.com/aws/aws-sdk-go-v2/issues/3113#issuecomment-2977595282
Could you show Go v2 code that you use to create EventBridge pipe and invoke step func execution
— Reply to this email directly, view it on GitHub https://github.com/aws/aws-sdk-go-v2/issues/3113#issuecomment-2977595282, or unsubscribe https://github.com/notifications/unsubscribe-auth/AILRGEJDODFAAHAG24SOXIT3D4DFZAVCNFSM6AAAAAB7LUM2NWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDSNZXGU4TKMRYGI . You are receiving this because you authored the thread.Message ID: @.***>
Well CDK Go is totally another repo owned by other team, which SDK Go v2 can not guarantee consistency with considering service operation request/response
This issue has not received a response in 1 week. If you want to keep this issue open, please just leave a comment below and auto-close will be canceled.