# Python to execute AWS Athena SQL

**URL:** <https://matillioncommunity.discourse.group/t/python-to-execute-aws-athena-sql/1946>\
**Category:** Matillion ETL\
**Created:** [November 11, 2022, 2:38am UTC](https://matillioncommunity.discourse.group/t/python-to-execute-aws-athena-sql/1946 "2022-11-11T02:38:13Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![R.Porter.TechnoMage](https://avatars.discourse-cdn.com/v4/letter/r/bc79bd/32.png) [@R.Porter.TechnoMage](https://matillioncommunity.discourse.group/u/R.Porter.TechnoMage)\
**Post date:** [November 11, 2022, 2:38am UTC](https://matillioncommunity.discourse.group/t/python-to-execute-aws-athena-sql/1946/1 "2022-11-11T02:38:13Z")

</div>

Looking to connect with other Matillion users who have used Python scripting to execute AWS Athena SQL instead of Redshift or Redshift/Spectrum).

---

<div class="post-metadata">

**Author:** ![Joe-Community-Manager](https://sea2.discourse-cdn.com/flex002/user_avatar/matillioncommunity.discourse.group/joe-community-manager/32/897_2.png) [@Joe-Community-Manager](https://matillioncommunity.discourse.group/u/Joe-Community-Manager)\
**Post date:** [January 31, 2023, 8:55am UTC](https://matillioncommunity.discourse.group/t/python-to-execute-aws-athena-sql/1946/2 "2023-01-31T08:55:53Z")

</div>

Hello [@R.Porter.TechnoMage](https://matillioncommunity.discourse.group/u/R.Porter.TechnoMage)​

I hope you are well, I have just seen your post and wanted to share what we have seen users do in the past, this may help you achieve this.

Previously, users have achieved similar using the Database Query Component [(Info here)](https://documentation.matillion.com/docs/2147237) alongside the Athena JDBC driver.

I hope you have been able to do this, would love to learn how you did!

Kind regards, Joe
