Amazon EC2 · Arazzo Workflow
Amazon EC2 Inventory Instances Then Image First
Version 1.0.0
Describe instances, page through with NextToken, then image the first instance found.
Provider
Workflows
paginate-instances-then-image
Page through described instances and image the first one found.
Chains a DescribeInstances pagination loop branching on the NextToken cursor with a CreateImage call against the first discovered instance.
1
pageInstances
describeInstances
Describe instances and branch on the NextToken cursor, looping while more pages remain and proceeding once the listing is complete.
2
imageFirst
createImage
Create an AMI from the first instance discovered during paging.