upload-package-dataset

Description

Uploads a dataset file to the data lake and attaches it to an existing package.

Synopsis

upload-package-dataset
--package-id <value>
--file <value>
--content-type <value>

Options

--package-id (string)

The system identifier of the data lake package.

--file (path)

Path to the manifest file on the local system.

--content-type

The content type of the dataset file being uploaded to the data lake package.

Example

The following command adds a dataset file to the data lake package "rJAqEmoym".

Command:

datalake upload-package-dataset --package-id 'rJAqEmoym' --file ~/Downloads/grav.csv --content-type 'text/csv'

Output:

{
    "Item": {
        "updated_at": "2018-05-29T21:52:04Z",
        "package_id": "rJAqEmoym",
        "created_at": "2018-05-29T21:52:04Z",
        "s3_bucket": "data-lake-us-east-1-272056417722",
        "content_type": "text/csv",
        "created_by": "heitorc_amazon_com",
        "dataset_id": "SynFoHskm",
        "owner": "heitorc_amazon_com",
        "name": "grav.csv",
        "s3_key": "rJAqEmoym/1527630724561/grav.csv",
        "type": "dataset"
    }
}

Output

Dataset object -> (json)