nccgroup/aws-inventory

Hosted the report in ec2 Asking for Select data file input

Codehouse-Satty opened this issue · 6 comments

Hi @ncc-erik-steringer

Thank you for making it compatible with python3 much appreciate it !!

Actually, after running the report in ec2 ubuntu instance I've hosted the report as the webserver. But the the the index.html file under the
/gui/dist/ is asking for the .json file as input (aws_inventory_data-default.json) from the local system. So is there any way we can directly open the report in browser without any data file input?

Thank you !!

Hey there @Codehouse-Satty ,

If the webserver is running, and you access index.html via webserver, it should serve that JSON output from the tool (since it's basically the artifact of this tool). Is the HTML trying to load it via file:// or the like? Can you share your browser's console output showing the error?

This is the image of the webserver URL from the report location /gui/dist/#/

image

It's asking for the input of the JSON file i.e aws_inventory_data-default

Ah, now I see. The most optimal choice here is downloading the files to your own host and running the webserver locally (safer too). As far as I'm aware, there isn't a handy way to specify the file remotely.

Oh okay, Eric !! So, are there any changes we can do so that the index.html file will automatically fetch the aws_inventory_data-default.json file directly without asking to import the file? Please suggest

Thank you again for your quick response !!

Unfortunately I don't see a way to do that out of the box at the moment. Your best option is downloading the files and opening locally.

In the future, we could try adding stronger support for your use-case.