-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1026 from dsalaza4/main
feat(doc): #940 split makes reference
- Loading branch information
Showing
19 changed files
with
2,225 additions
and
2,245 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
## dynamoDb | ||
|
||
Create a local dynamo database | ||
|
||
Types: | ||
|
||
- dynamoDb (`attrsOf targetType`): Optional. | ||
Mapping of names to multiple databases. | ||
Defaults to `{ }`. | ||
- targetType (`submodule`): | ||
- name (`str`), | ||
- host (`str`): Optional, defaults to `127.0.0.1`. | ||
- port (`str`): Optional, defaults to `8022`. | ||
- infra (`str`): Optional. Absolute path to the directory containing the | ||
terraform infraestructure. | ||
- daemonMode (`boolean`): Optional, defaults to `false`. | ||
- data (`listOf str`): Optional, defaults to []. Absolute paths with json documents, | ||
with the format defined for | ||
[BatchWriteItem](https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_BatchWriteItem.html#API_BatchWriteItem_RequestSyntax). | ||
- dataDerivation (`listOf package`): Optional, defaults to `[]`. | ||
Derivations where the output ($ out), are json documents, | ||
with the format defined for | ||
[BatchWriteItem](https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_BatchWriteItem.html#API_BatchWriteItem_RequestSyntax). | ||
This is useful if you want to perform transformations on your data. | ||
|
||
Example `makes.nix`: | ||
|
||
```nix | ||
{ projectPath | ||
, ... | ||
}: | ||
{ | ||
dynamoDb = { | ||
usersdb = { | ||
host = "localhost"; | ||
infra = projectPath "/test/database/infra"; | ||
data = [ | ||
projectPath "/test/database/data" | ||
]; | ||
daemonMode = true; | ||
}; | ||
}; | ||
} | ||
``` | ||
|
||
Example invocation: `$ m . /dyanmoDb/usersdb` | ||
|
||
You can also overwrite the parameters with environment variables. | ||
|
||
Example: `$ DAEMON=false m . /dyanmoDb/usersdb` | ||
|
||
The following variables are available: | ||
|
||
- HOST | ||
- PORT | ||
- DAEMON | ||
- POPULATE |
Oops, something went wrong.