You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
migrator configuration file is a simple YAML file. Take a look at a sample `migrator.yaml` configuration file which contains the description, correct syntax, and sample values for all available properties.
468
477
469
478
```yaml
470
479
# required, base directory where all migrations are stored, see singleSchemas and tenantSchemas below
@@ -506,6 +515,8 @@ webHookHeaders:
506
515
- "X-CustomHeader: value1,value2"
507
516
```
508
517
518
+
## Env variables substitution
519
+
509
520
migrator supports env variables substitution in config file. All patterns matching `${NAME}` will look for env variable `NAME`. Below are some common use cases:
510
521
511
522
```yaml
@@ -514,6 +525,51 @@ webHookHeaders:
514
525
- "X-Security-Token: ${SECURITY_TOKEN}"
515
526
```
516
527
528
+
## Source migrations
529
+
530
+
Migrations can be read either from local disk or from S3 (I'm open to contributions to add more cloud storage options).
531
+
532
+
### Local storage
533
+
534
+
If `baseDir` property is a path (either relative or absolute) local storage implementation is used:
535
+
536
+
```
537
+
# relative path
538
+
baseDir: test/migrations
539
+
# absolute path
540
+
baseDir: /project/migrations
541
+
```
542
+
543
+
### AWS S3
544
+
545
+
If `baseDir` starts with `s3://` prefix, AWS S3 implementation is used. In such case the `baseDir` property is treated as a bucket name:
546
+
547
+
```
548
+
# S3 bucket
549
+
baseDir: s3://lukasz-budnik-migrator-us-east-1
550
+
```
551
+
552
+
migrator uses official AWS SDK for Go and uses a well known [default credential provider chain](https://docs.aws.amazon.com/sdk-for-go/v1/developer-guide/configuring-sdk.html). Please setup your env variables accordingly.
553
+
554
+
## Supported databases
555
+
556
+
Currently migrator supports the following databases and their flavours. Please review the Go driver implementation for information about supported features and how `dataSource` configuration property should look like:
0 commit comments