Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hosted the report in ec2 Asking for Select data file input #35

Open
Codehouse-Satty opened this issue Nov 18, 2021 · 6 comments
Open

Hosted the report in ec2 Asking for Select data file input #35

Codehouse-Satty opened this issue Nov 18, 2021 · 6 comments

Comments

@Codehouse-Satty
Copy link

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 !!

@ncc-erik-steringer
Copy link
Collaborator

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?

@Codehouse-Satty
Copy link
Author

Codehouse-Satty commented Nov 18, 2021

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

@ncc-erik-steringer
Copy link
Collaborator

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.

@Codehouse-Satty
Copy link
Author

Codehouse-Satty commented Nov 18, 2021

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 !!

@ncc-erik-steringer
Copy link
Collaborator

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.

@Codehouse-Satty
Copy link
Author

Codehouse-Satty commented Nov 18, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants