2.1.1 • Published 4 days ago

cdk-rds-dump v2.1.1

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
4 days ago

cdk-rds-dump

cdk-rds-dump is a Constructs library for AWS CDK that provides the functionality to dump the contents of Amazon RDS, generate it as an SQL file, and store it in Amazon S3.

Architecture

View on Construct Hub Open in Visual Studio Code npm version Build Status Release Status License npm downloads

Usage

Install from npm:

npm i cdk-rds-dump

Then write CDK code as below:

import { RdsDump, DbEngine } from 'cdk-rds-dump';

declare const rdsCluster: rds.DatabaseCluster;
new RdsDump(this, "RdsDump", {
  dbEngine: DbEngine.MYSQL,
  rdsCluster: cluster,
  databaseName: "testDatabase",
  schedule: events.Schedule.cron({ minute: "0", hour: "0" }),
  lambdaEnv: {
    ENV_VAR: "value",
  },
  createSecretsManagerVPCEndpoint: true,
  createS3GatewayEndpoint: true,
  // DB secret is obtained from rdsCluster.secret as default.
  // If you want to use a different secret, you can specify it as follows.
  // secretId: 'secretsmanager-secret-id',
});

How does it work?

This code creates a new RDS cluster and uses the RdsDump Construct to dump the data from that RDS cluster. The dumped data is generated as an SQL file and stored in Amazon S3.

For detailed usage and details of the parameters, refer to the API documentation.

Why do we need this construct?

AWS RDS is a very useful managed RDB service and includes, by default, the ability to create snapshots. However, in some cases, such as for development reasons, it is easier to handle SQL files dumped from the DB. Therefore, cdk-rds-dump was created as a construct to easily create SQL files on a regular basis.

Contribution

Contributions to the project are welcome. Submit improvement proposals via pull requests or propose new features.

License

This project is licensed under the Apache-2.0 License.

2.1.1

4 days ago

2.1.0

25 days ago

2.0.5

1 month ago

2.0.4

2 months ago

2.0.3

2 months ago

2.0.2

2 months ago

2.0.1

2 months ago

2.0.0

3 months ago

1.2.50

3 months ago

1.2.49

3 months ago

1.2.47

3 months ago

1.2.48

3 months ago

1.2.46

3 months ago

1.2.45

3 months ago

1.2.44

3 months ago

1.2.43

4 months ago

1.2.42

4 months ago

1.2.41

5 months ago

1.2.40

5 months ago

1.2.39

5 months ago

1.2.38

6 months ago

1.2.37

7 months ago

1.2.36

7 months ago

1.2.35

7 months ago

1.2.34

7 months ago

1.2.33

7 months ago

1.2.32

8 months ago

1.2.31

8 months ago

1.2.30

8 months ago

1.2.29

8 months ago

1.2.28

8 months ago

1.2.27

8 months ago

1.2.26

8 months ago

1.2.25

8 months ago

1.2.24

8 months ago

1.2.23

8 months ago

1.2.22

8 months ago

1.2.21

9 months ago

1.2.20

9 months ago

1.2.19

9 months ago

1.2.18

9 months ago

1.2.17

9 months ago

1.2.16

9 months ago

1.2.15

9 months ago

1.2.14

9 months ago

1.2.13

9 months ago

1.2.12

9 months ago

1.2.11

9 months ago

1.2.10

9 months ago

1.2.9

9 months ago

1.2.8

9 months ago

1.2.7

9 months ago

1.2.6

10 months ago

1.2.5

10 months ago

1.2.4

10 months ago

1.2.3

10 months ago

1.2.2

10 months ago

1.2.1

10 months ago

1.2.0

10 months ago

1.1.0

10 months ago

1.0.0

10 months ago

0.0.2

10 months ago

0.0.1

10 months ago

0.0.0

10 months ago