---
title: CIAC - Ireach Import
slug: hyperdealer/ciac-ireach-import
docTags: 
createdAt: 2020-12-23T17:50:28.000Z
---

# 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 <u>**last completed day**</u>.

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)

Use the manual for your OS: <u>[Linux](https://docs.aws.amazon.com/cli/latest/userguide/install-cliv2-linux.html)</u>, <u>[MacOS](https://docs.aws.amazon.com/cli/latest/userguide/install-cliv2-mac.html)</u>, <u>[Windows](https://docs.aws.amazon.com/cli/latest/userguide/install-cliv2-windows.html)</u>.

##  Configure credentials

In command line:

| $ aws configure<br />AWS Access Key ID \[None]: **AKIARVOJYZJWV4G7HTZX**<br />AWS Secret Access Key \[None]: **EP4tz9JTFJjxM/qRIRWlj9w8fpQ9r8iE33l3w8tu**<br />Default region name \[None]: **eu-west-1**<br />Default output format \[None]: **json** |
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |

Check <u>[documentation](https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-files.html)</u> 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 <u>[SDK for your platform](https://aws.amazon.com/tools/)</u>.

### Or you can use AWS CLI:

| $ aws s3 cp **&#x7B;&#x7B;YOUR\_FILE}}** s3://prod-ireach-import/ciac |
| --------------------------------------------------------------------- |


Change **&#x7B;&#x7B;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"**

