AWS Glue not properly crawling s3 bucket populated by "Resource Data Sync" -- specifically, "AWS: InstanceInformation" is not made into a table

0

I set up an s3 bucket that collects inventory data from multiple AWS accounts using the Systems Manager "Resource Data Sync". I was able to set up the Data Syncs to feed into the single bucket without issue and the Glue crawler was created automatically.

Now that I'm trying to query the data in Athena, I noticed there is an issue with how the Crawler is parsing the data in the bucket. The folder "AWS:InstanceInformation" is not being turned into a table. Instead, it is turning all of the "region=us-east-1/" and "test.json" sub-items into tables which are, obviously, not queryable.

To illustrate further, each of the following paths is being turned into it's own table.

  • s3://resource-data-sync-bucket/AWS:InstanceInformation/accountid=12345679012/region=us-east-1
  • s3://resource-data-sync-bucket/AWS:InstanceInformation/accountid=12345679012/test.json
  • s3://resource-data-sync-bucket/AWS:InstanceInformation/accountid=23456790123/region=us-east-1
  • s3://resource-data-sync-bucket/AWS:InstanceInformation/accountid=23456790123/test.json
  • s3://resource-data-sync-bucket/AWS:InstanceInformation/accountid=34567901234/region=us-east-1
  • s3://resource-data-sync-bucket/AWS:InstanceInformation/accountid=34567901234/test.json

This is ONLY happening with the "AWS:InstanceInformation" folder. All of the other folders (e.g. "AWS:DetailedInstanceInformation") are being properly turned into tables.

Since all of this data was populated automatically, I'm assuming that we are dealing with a bug? Is there anything I can do to fix this?

1 Answer
0

After testing more, I've determined the issue is being caused by that "test.json" file which is being added at the time of Resource Sync creation.

answered 2 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions