CIAC - Ireach Import
General information
Ireach Import engine imports vehicles from xml files from s3://prod-ireach-import/{{tenantId}} every day at 7, 13 and 18 UTC.
It does not import vehicles from files uploaded on the day of current import.
It sets isOnline: true for vehicles from files uploaded in the last completed day.
All other vehicles are going to be marked as isOnline: false.
Example
E.g., if it is Wednesday import:
- Files excluding Wednesday are going to be imported (if there was files for Wednesday they will be kept for tomorrow)
- Vehicles from the XML files which was uploaded on Tuesday are going to be marked as online
- All other vehicles are going to be marked as offline.
S3 Bucket Access Setup
Install AWS CLI (if not installed)
Configure credentials
In command line:
$ aws configure AWS Access Key ID [None]: AKIARVOJYZJWV4G7HTZX AWS Secret Access Key [None]: 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 Default region name [None]: eu-west-1 Default output format [None]: json |
|---|
Check documentation for more information.
Test connection
$ aws s3 ls s3://prod-ireach-import/ciac |
|---|
Should run without errors.
Upload files
s3://prod-ireach-import/ is the Ireach Import bucket URL.
s3://prod-ireach-import/ciac is the CIAC tenant directory URL.
To interact with S3 Bucket API use SDK for your platform.
Or you can use AWS CLI:
$ aws s3 cp {{YOUR_FILE}} s3://prod-ireach-import/ciac |
|---|
Change {{YOUR_FILE}} to your file path.
Import details
If Ireach car has status equals to "Depot sales free" it will be imported to portal with status "Pending"