This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Initial idea: https://gist.github.com/joeyAghion/6511184 | |
| // | |
| // Usage: mongo --uri <your-mongodb-uri> --eval 'var targetDB="<your-db-name>"' mongodb-stats.js | |
| var DB_NAME = targetDB; | |
| if (!DB_NAME) { | |
| print("Error: Database name (targetDB) not set. Please pass it via the --eval flag."); | |
| quit(1); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # | |
| # An example of deploying an AWS Lambda function in Python along with its dependencies via Terraform using a single .zip file. | |
| # | |
| locals { | |
| lambda_name = "lambda-with-deps" | |
| lambda_src = "sources" | |
| } | |
| data "aws_iam_policy_document" "lambda_assume_role_policy" { | |
| statement { |