To configure the driver to use AWS credentials authentication:
  • Configure the minimum options required for a connection:
    • If you are using a Model file, set the REST Config File (RestConfigFile) option to provide the name and location of the Model file. For example, C:/path/to/myrest.rest.
    • If you are using the REST Sample Path option, set the REST Sample Path (RestSamplePath) option to specify the endpoint that the want to connect to and sample. For example, https://example.com/countries/.
  • Set the Authentication Method (AuthenticationMethod) option to 43 (AWS).
  • Set the Access Key (AccessKey) option to specify your access key ID for your IAM user or AWS account root user.
  • Set the Region (Region) option to specify name of the region that hosts your AWS server. For example, us-east-1 or us-east-2. If no value is specified, the driver will use us-east-1.

    For a list of regions, refer to the AWS documentation.

  • Set the Secret Key (SecretKey) option to specify your secret access key for an IAM user or AWS account root user.
  • Optionally, specify values for any additional options you want to configure. See "Connection option descriptions" for a complete list of options.

The following examples demonstrate a session using a Model file with AWS authentication enabled.

Using a connection URL:

DRIVER=DataDirect 8.0 Autonomous REST Connector;AccessKey=ABCDEFGHIJKL1EXAMPLE;
  AuthenticationMethod=43;Region=us-east-2;RestConfigFile=C:/path/to/myrest.rest;
  SecretKey=aBcdeFGhiJKLM/N1OPQRS/tUvWxyzYEXAMPLEKEY

Using an odbc.ini file with the 32-bit driver:

Driver=ODBCHOME/lib/ivautorestxx.so
Description=My Autonomous REST Data Source
...
AccessKey=ABCDEFGHIJKL1EXAMPLE
...
AuthenticationMethod=43
...
Password=secret
...
Region=us-east-2
...
RestConfigFile=C:/path/to/myrest.rest
...
SecretKey=aBcdeFGhiJKLM/N1OPQRS/tUvWxyzYEXAMPLEKEY
...
User=jsmith
...