Your organization has a large amount of customers data from for all regions in flat files. You organization needs to analyze customer data in the US region in a short span of time. Create a mapping that reads all the customer records and write the records to Amazon Redshift table.
You can use the following objects in a Amazon Redshift mapping:
Flat file input
The input file is a flat file that contains the customer names and other details about customers.
Create a flat file data object. Configure the flat file connection and specify the flat file that contains the customer data as a resource for the data object. Drag the data object into a mapping as a read data object.
Transformations
Add Filter transformation to get customer data in a particular region.
The Filter transformation filters the source data based on the value you specify for the region ID column. The Data Integration Service returns the rows that meet the filter condition.
Amazon Redshift output
Create an Amazon Redshift data object write operation. Configure the Amazon Redshift connection and specify the Amazon Redshift object as a target for the data object. Drag the data object into a mapping as a target data object.
The following image shows the Amazon Redshift mapping example:
When you run the mapping, the customer records are read from the flat file and written to the Amazon Redshift table.