EventBridge Pipes Describe, Update and Await
A 3-step recipe with Amazon EventBridge Pipes. We can help you get access.
Recipe · 3 steps
EventBridge Pipes Describe, Update and Await
Describe a pipe, update it, then poll until the update settles.
- Read the existing pipe to capture its current role ARN and state before submitting the update.
- Submit the update revising the pipe description and desired state, reusing the role ARN recovered from the describe step unless one was supplied.
- Read the pipe state after the update. While it is still UPDATING, loop and poll again; once it has settled the workflow ends.
What you'll need to have ready
- name: The name of the pipe to update (1-64 chars, ^[\.\-_A-Za-z0-9]+$).
- desiredState: The state the pipe should be in after the update (RUNNING or STOPPED).
- description: The new description to apply to the pipe.
- roleArn: Optional override for the IAM role ARN. When omitted the role ARN read from the existing pipe via DescribePipe is reused.
For your developer
Arazzo workflow amazon-eventbridge-pipes:describe-update-await, 3 operations: DescribePipe → UpdatePipe → DescribePipe. Specs on APIs.io.