Connect to OpenSearch Using Amazon Web Services Authentication
You can connect the Composer OpenSearch connectors to your OpenSearch data store using Amazon Web Services (AWS) credentials. After connecting, the Composer OpenSearch connectors work with AWS OpenSearch without any restrictions.
Connect the OpenSearch connector to your OpenSearch data store using AWS authentication:
Important: If you are connecting to OpenSearch versions earlier than 2.x, use the Elasticsearch 7 connector.
Specify the AWS credentials in a standard AWS-format credentials file (see Format of the credentials file) and store the file in the OpenSearch connector’s file system.
-
Edit the OpenSearch properties file (
edc-OpenSearch.properties) and locate or add theOpenSearch.aws.show-aws-connection-paramsproperty to the file. This property indicates whether AWS-specific connection parameters should be shown when a new connector is created or the connection properties of an existing connector are refreshed. Valid values aretrueorfalse. The default isfalse(users will not see new AWS connection parameters).Set the value of this property to
trueand save the properties file. For more information about Composer properties files, see Configuration Property Files. -
Create a new OpenSearch connection or edit an existing one (see Add Data Store Connections).
The AWS connection parameters appear in the UI. Supply values for them as described in the following table.
Parameter Specify Description AUTHENTICATE_WITH_AWS_CREDENTIALStrueIndicate whether authentication with AWS credentials should be used. Note that the OpenSearch username / password specification and AWS credentials cannot be simultaneously used for authentication. Valid values are
trueorfalse; the default isfalse(AWS credentials are not used).AWS_REGIONa valid region name
Specify the AWS region where the target OpenSearch service is running. This parameter is optional when host names in the connection string have the standard format
<domain>.<region>.es.amazonaws.com(the region name can be extracted from the host name). However, when specified, it has priority over the region name included in the host name.AWS_PROFILES_CONFIG_PATHthe path to the credentials file
Specify the location of the AWS credentials file in the OpenSearch connector’s file system. This parameter is optional when the credentials file is in the default location (
~/.aws/credentialsfor the user of the connector).AWS_PROFILEa valid profile name in the AWS credentials file
Specify the profile to use within the AWS credentials file. This parameter is optional if you choose to use the
defaultprofile in the AWS credentials file. After you have specified all parameters necessary for the connection definition, save it. See Add Data Store Connections.
Comments
0 comments
Please sign in to leave a comment.