RhinoSecurityLabs / cloudgoat

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

Updated sqllite database location #228

Closed barnesrobert closed 1 year ago

barnesrobert commented 1 year ago

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

andrew-aiken commented 1 year 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 1 year ago

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

andrew-aiken commented 1 year 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 1 year 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.