# Configuring AWS Glue settings

#### Open AWS Glue services.

<figure><img src="/files/Hm1D0BZA5VydwqrwKEWB" alt=""><figcaption></figcaption></figure>

#### Create a database.

* Name the database and click 'Create database'.

<figure><img src="/files/q0WkyPhleMOvDySeYW6Z" alt=""><figcaption></figcaption></figure>

#### A database with the desired name is created.

<figure><img src="/files/7O7au4XI2DRn5YZgowXF" alt=""><figcaption></figcaption></figure>

#### Open IAM services and select 'Role'.

<figure><img src="/files/Budo0hked4KJ85kqNacv" alt=""><figcaption></figcaption></figure>

#### Select the desired roles.

<figure><img src="/files/xwPJyt6A3GLVCqpgoY5W" alt=""><figcaption></figcaption></figure>

#### Select the trusted entity, choose the use case as 'glue', and select 'Next'.

<figure><img src="/files/fCGbJl4N8prVmgL2glss" alt=""><figcaption></figcaption></figure>

#### In Permissions, set the default execution role for the Glue function, and click 'Next'.

<figure><img src="/files/nePUAAvBpnYc8gb5ZgGG" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/DEp3NIQMGRnaTHfip1Y1" alt=""><figcaption></figcaption></figure>

#### Name, review and create:

* Name the role.
* Add description (if needed/as required).
* Click 'Create role'.

<figure><img src="/files/6WeTrTe27gmIbvkYl926" alt=""><figcaption></figcaption></figure>

#### Click 'ETL jobs'.

<figure><img src="/files/uHytHfMGzd4RT1YPDveJ" alt=""><figcaption></figcaption></figure>

#### Create a script by clicking the 'Script editor' tab.

<figure><img src="/files/zxGK7c1BvUta92rzws3G" alt=""><figcaption></figcaption></figure>

#### Select 'Spark' from the options under Engine (from the drop-down).

#### Enable 'Upload script' and click 'Choose file'.

<figure><img src="/files/qd0jxzvOLDEfSaT1gSio" alt=""><figcaption></figcaption></figure>

#### Locate the [<mark style="color:blue;">script file</mark>](https://itltdgithub.s3.ap-south-1.amazonaws.com/glue_script_v2.py) on your device, select and open.

<figure><img src="/files/KBMMtTWWwsvHozrwGckY" alt=""><figcaption></figcaption></figure>

#### View or edit your script code (if required)

<figure><img src="/files/afQBcZRpyH5tXQknerWX" alt=""><figcaption></figcaption></figure>

#### Add the basic properties under the 'Job details' tab.

<figure><img src="/files/PYoImEQWxNzY9u6drxcU" alt=""><figcaption></figcaption></figure>

#### [<mark style="color:blue;">Option 1 - To add data to the database based on time</mark>](https://app.gitbook.com/o/HhTfJJOHHF3lfqYUgSrl/s/TCRfbN5hBLeUzIaKHbJ7/~/changes/407/rexgen-air-cloud-usage-guides/cloud-usage-guides-for-rexgen-air-device/setting-grafana-dashboard-with-parquet/configuring-aws-glue-settings/option-1-to-add-data-to-the-database-based-on-time)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.influxtechnology.com/support_guides/rexgen-series-product-manuals/rexgen-air-cloud-usage-guides/cloud-usage-guides-for-rexgen-air-device/setting-grafana-dashboard-with-parquet/configuring-aws-glue-settings.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
