RhinoSecurityLabs / cloudgoat

CloudGoat is Rhino Security Labs' "Vulnerable by Design" AWS deployment tool
BSD 3-Clause "New" or "Revised" License
2.88k stars 597 forks source link

Updated sqllite database location #228

Closed barnesrobert closed 11 months ago

barnesrobert commented 11 months ago

Lambda functions must write to "/tmp" of the function's local storage.

andrew-aiken commented 11 months ago

@barnesrobert

The function already has a database my_database.db that store just the policies.

From the comment in the cheat sheet it looks like the commented import was intentional to show the schema

Look at the lambda source code. You should see the database structure in a comment, as well as the code that is handling input parameters.

barnesrobert commented 11 months ago

I know, but the execution fails when writing the my_database.db file. It needs to be written to /tmp.

andrew-aiken commented 11 months ago

It does not need to write to the file (my_database.db) because it already has the policies.

I used this to view the file.

barnesrobert commented 11 months ago

Ah, I thought at first glance that it was being created dynamically. I see now that it's included in the source package. Thanks for the clarification.