I'm trying to import data using AWS CLI to my workbook..
Here is my command:
aws honeycode start-table-data-import-job
--workbook-id 'b21a7e86-eb22-4f19-9390-9c7d90b6f5c1'
--data-source '{ "dataSourceConfig": {"dataSourceUrl": "https://mybucketblablabla.s3.amazonaws.com/file.csv " } }'
--data-format 'DELIMITED_TEXT'
--destination-table-id 'e7cad858-3f22-41c2-be91-e67968d784b0'
--import-options '{
"destinationOptions": {
"columnMap": {
"b489422c-7d31-45f5-b16b-c63cc2d4e911": { "columnIndex": 1 }
}
},
"delimitedTextOptions": {
"delimiter": ",",
"dataCharacterEncoding": "US-ASCII"
}
}'
--client-request-token 'idksdsdsdsdsdsdsddshhdsddssdkdkd'
But it is giving me error saying:
An error occurred (ValidationException) when calling the StartTableDataImportJob operation: Invalid input in request
What could be the issue? Also how do I generate --client-request-token , I couldn't generate --client-request-token so, I used random words(I believe it doesn't matter).
Please let me know what's wrong with my request.
Pankaj
December 2, 2021, 4:47am
3
Thank you for reaching out and welcome to the community.
Are you using an IAM user or IAM role to invoke start-table-data-import-job, or are you using the root user?
I used root account.. do I have to use IAM user account?
Pankaj
December 3, 2021, 5:27am
8
Hi @asad0x01h1 ,
Thanks for your response. I am consulting with engineering team and trying to figure out what could be the issue and/or IAM user would be recommended. I'll keep you posted as soon as I hear back from them.
Pankaj
December 6, 2021, 5:50am
9
Hi @asad0x01h1 ,
Thanks for your patience. I have consulted with engineering. They recommended to use IAM user instead using root account.
Let me know if you have any further question.
Hi @Pankaj ,
I'm getting an error saying ResourceNotFoundException while calling DescribeTableDataImportJob operation
I've created a topic, Could you please reply there?
I can confirm the information required to get status of a job is correct.
The command is like below:
aws honeycode describe-table-data-import-job \
--workbook-id 'cb6f4828-04e6-4df6-a655-7d82fb50d5d4' \
--table-id '90662fc8-2f76-4e93-af0b-ec3a73739db4' \
--job-id ‘a69b1d21-cb3e-43b2-bbaa-45cf95e09fc4’
I have provided the correct information as needed but i'm getting this error. What could be the issue?
Note that, I'm using IAM user which has the required permission.
Response:
An error occu…
Pankaj
December 8, 2021, 5:46am
12
Hi @asad0x01h1 ,
I have responded back to your post. Feel free to reach out to us if you have any further question.