https://github.com/koki-develop/athena-query-action
Execute a query on Amazon Athena.
https://github.com/koki-develop/athena-query-action
Last synced: 10 months ago
JSON representation
Execute a query on Amazon Athena.
- Host: GitHub
- URL: https://github.com/koki-develop/athena-query-action
- Owner: koki-develop
- License: mit
- Created: 2024-08-19T13:36:11.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-08-20T12:07:23.000Z (over 1 year ago)
- Last Synced: 2025-04-15T08:58:26.787Z (10 months ago)
- Language: TypeScript
- Homepage:
- Size: 892 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Athena Query Action
[](https://github.com/koki-develop/athena-query-action/releases/latest)
[](https://github.com/koki-develop/athena-query-action/actions/workflows/ci.yml)
[](https://github.com/koki-develop/athena-query-action/actions/workflows/build.yml)
Execute a query on Amazon Athena.
## Usage
```yaml
- uses: koki-develop/athena-query-action@v1
with:
query: SELECT * FROM my_table;
output-location: s3://path/to/query/bucket/
```
### Inputs
| Name | Required | Description |
| ---- | -------- | ----------- |
| query | **Yes** | The SQL query statements to be executed. |
| database | No | The name of the database used in the query execution. The database must exist in the catalog. |
| catalog | No | The name of the data catalog used in the query execution. |
| output-location | No | The location in Amazon S3 where your query and calculation results are stored, such as `s3://path/to/query/bucket/`. |
| workgroup | No | The name of the workgroup in which the query is being started. |
| parameters | No | A list of values separated by commas for the parameters in a query. The values are applied sequentially to the parameters in the query in the order in which the parameters occur. |
### Outputs
| Name | Description |
| ---- | ----------- |
| execution-id | The unique ID of the query that ran as a result of this request. |
| output-location | The location in Amazon S3 where your query and calculation results are stored, such as `s3://path/to/query/bucket/00000000-0000-0000-0000-000000000000.csv`. |
## LICENSE
[MIT](./LICENSE)