[{"data":1,"prerenderedAt":54},["ShallowReactive",2],{"workflow-query-athena-sam":3},{"id":4,"title":5,"cleanup":6,"contributors":11,"deploy":13,"description":16,"diagram":17,"extension":18,"framework":19,"gitHub":20,"introBox":29,"level":33,"meta":34,"resources":35,"s3URL":41,"services":42,"simplicity":45,"stem":46,"testing":47,"type":51,"usecase":52,"videoId":28,"__hash__":53},"workflows\u002Fworkflows\u002Fquery-athena-sam.json","Query Athena",{"headline":7,"text":8},"Cleanup",[9,10],"1. Delete the stack: \u003Ccode>sam delete --stack-name STACK_NAME\u003C\u002Fcode>.","2. Confirm the stack has been deleted: \u003Ccode>aws cloudformation list-stacks --query \"StackSummaries[?contains(StackName,'STACK_NAME')].StackStatus\"\u003C\u002Fcode>",[12],"content\u002Fcontributors\u002Fchristian-bonzelet.json",{"text":14},[15],"sam deploy --guided","Process results from Amazon Athena Queries written to Amazon S3.","\u002Fassets\u002Fimages\u002Fworkflows\u002Fquery-athena-sam.png","json","AWS SAM",{"template":21,"payloads":26},{"repoURL":22,"templateDir":23,"templateFile":24,"ASL":25},"https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fstep-functions-workflows-collection\u002Ftree\u002Fmain\u002Ftree\u002Fmain\u002Fsfn-athena-results\u002F","sfn-athena-results\u002F","sfn-athena-results\u002Ftemplate.yaml","statemachine\u002Fstatemachine.asl.json",[27],{"headline":28,"payloadURL":28},"",{"headline":30,"text":31},"How it works",[32],"When running SQL queries using Amazon Athena, the query results can be stored in specified locations. One potential location is Amazon S3 to view and download the query result sets for different postprocessing use cases. Amazon Athena automatically stores query results and metadata information for each query that runs in a query result location that you can specify in Amazon S3. If necessary, you can access the files in this location to work with them. You can also download query result files directly from the Amazon Athena console.","100",{},{"headline":36,"bullets":37},"Additional resources",[38],{"text":39,"link":40},"The AWS Step Functions Workshop","https:\u002F\u002Fcatalog.workshops.aws\u002Fstepfunctions\u002Fen-US","https:\u002F\u002Fda-public-assets.s3.amazonaws.com\u002Fworkflows\u002Fquery-athena-sam\u002Fcloudformation.yml",[43,44],"athena","lambda","3 - Application","workflows\u002Fquery-athena-sam",{"headline":48,"text":49},"Testing",[50],"See the GitHub repo for detailed testing instructions.","Standard","Data Processing","oH1H52UOKrsx2NNxHsT3ZL7XhgvUnwSIzHG90CP3PSI",1779273341019]