AWS IoT Analytics Datasets returning column names but no rows

0

Hi there, I have setup an ETL pipeline in AWS IoT Analytics (channels, pipeline, data store) and now want to create IoT Analytics Datasets. When creating the dataset, the query does not return any data, except for the column names. For testing purposes, I am using the default select query: SELECT * FROM my_data_store LIMIT 10. The datastore contains data, e.g., I ran a Glue Crawler over the data in the data store, queried it with Athena and got correct results. I also manually downloaded the data from S3, and the data can be queried locally. But the Datasets CSV keeps being empty (except for all the column names). The Datasets content view in the AWS Console also only displays the Column Names. To be on the safe side, I further added full S3 permissions to my IAM Roles, but without any success.

What is the problem here? Is the dataset functionality working for any of you?

Best, Jon

질문됨 일 년 전300회 조회
1개 답변
1
수락된 답변

Are you using your own S3 bucket for storing/managing the data then you must grant AWS IoT Analytics permission to perform these actions on your Amazon S3 bucket for you. If you use the data store as a source for an SQL query dataset, set up an Amazon S3 bucket policy that grants AWS IoT Analytics permission to invoke Amazon Athena queries on the contents of your bucket. Please refer to the https://docs.aws.amazon.com/iotanalytics/latest/userguide/policy.html link for more details.

If you update the options or permissions of your customer managed data store, you might need to reprocess channel data to ensure that any previously ingested data is included in dataset contents. For more information, see https://docs.aws.amazon.com/iotanalytics/latest/userguide/reprocessing.html#aws-iot-analytics-reprocessing.

  • s3:GetBucketLocation
  • s3:PutObject
  • s3:DeleteObject
AWS
Dhilip
답변함 일 년 전
profile picture
전문가
검토됨 한 달 전
  • Thank you! That solved it. I somehow overlooked this part in the docs.

  • Glad this worked.

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인