

# Creating a OpenSearch Service source node


## Prerequisites needed

+ A AWS Glue OpenSearch Service connection, configured with an AWS Secrets Manager secret, as described in the previous section, [Creating a OpenSearch Service connection](creating-opensearch-connection.md).
+ Appropriate permissions on your job to read the secret used by the connection.
+ A OpenSearch Service index you would like to read from, *aosIndex*.

## Adding a OpenSearch Service data source


**To add a **Data source – OpenSearch Service** node:**

1.  Choose the connection for your OpenSearch Service data source. Since you have created it, it should be available in the dropdown. If you need to create a connection, choose **Create OpenSearch Service connection**. For more information see the previous section, [Creating a OpenSearch Service connection](creating-opensearch-connection.md). 

    Once you have chosen a connection, you can view the connection properties by clicking **View properties**. 

1. Provide **Index**, the index you would like to read.

1. Optionally, provide **Query**, an OpenSearch query to deliver more specific results. For more information about writing OpenSearch queries, consult [Reading from OpenSearch Service indexes](aws-glue-programming-etl-connect-opensearch-home.md#aws-glue-programming-etl-connect-opensearch-read).

1.  In **Custom OpenSearch Service properties**, enter parameters and values as needed. 