Create a Step Functions workflow to query Amazon Athena.
This sample project demonstrates how to use an AWS Step Functions state machine to query Athena and get the results. This pattern is leveraging the native integration between these 2 services which means only JSON-based, structured language is used to define the implementation.
With Amazon Athena you can get up to 1000 results per invocation of the GetQueryResults method and this is the reason why the Step Functionshas a loop to get more results. The results are sent to a Map which can be configured to handle (the DoSomething state) the items in parallel or one by one by modifying the max_concurrency parameter.
This pattern deploys one Step Functions, two S3 Buckets, one Glue table and one Glue database.
Developer at heart, in 2018 joined AWS as a Solution Architect and since 2021 building, jointly with customers, the most exciting and innovative prototypes on AWS.