Add directives for AWSStill within the <subscribe> → <task> directive(s), nest the following directives: Directive | Description |
---|
<access_key> | Access Key associated with your AWS account | <secret_access_key> | Secret Access Key associated with your AWS account | <region> | Region that your Redshift server resides in | <s3_bucket> | Name of your AWS S3 bucket |
NOTE: Optionally, you can add the <batch_delete/> directive to enable batch processing of row deletes for enhanced data replication throughput.
Your agent.xml file should look similar to the example shown below: Code Block |
---|
| <?xml version="1.0" encoding="ISO-8859-1" standalone="no"?>
<config>
<agent>
<share/>
<subscribe>
<task>
<task_name>test_redshift1_subscribe</task_name>
<message_connection password="encrypted:vlOtU71yu8N/EFIJH85SSBtaIt7qEEfvqiqft9VZyYE=" user="exampleuser">amqps://example.perspectium.net</message_connection>
<instance_connection password="encrypted:vlOtU71yu8N/EFIJH85SSBtaIt7qEEfvqiqft9VZyYE=" user="example.user">https://myinstance.service-now.com</instance_connection>
<handler>com.perspectium.replicator.sql.RedshiftSQLSubscriber</handler>
<decryption_key>The cow jumped over the moon</decryption_key>
<database_type>redshift</database_type>
<database_server>pspexample.example.region.redshift.amazonaws.com</database_server>
<database_port>5439</database_port>
<database_user>exampleuser</database_user>
<database_password>encrypted:vlOtU71yu8N/EFIJH85SSAZYM2li7vh9u6asPldRqe0=</database_password>
<database>pspdev</database>
<access_key>AccessKey</access_key>
<secret_access_key>SecretAccessKey</secret_access_key>
<region>us-west-2</region>
<s3_bucket>examples3bucket</s3_bucket>
</task>
</subscribe>
<max_reads_per_connect>4000</max_reads_per_connect>
<polling_interval>30</polling_interval>
</agent>
</config> |
|