RDS Aurora Backup
Aurora DB cluster backup can be performed by taking RDS snapshot of the running DB cluster.
Prerequisites
The access credentials associated with the location profile should have these permissions to perform RDS operations.
Create ConfigMap
To facilitate K10 to connect to the Aurora DB cluster, a ConfigMap Kubernetes resource can be created with the details of the DB cluster.
Create aurora-app
namespace, if required.
$ kubectl create namespace aurora-app
Create a ConfigMap in aurora-app
namespace to store the Aurora DB cluster
details.
apiVersion: v1
kind: ConfigMap
metadata:
name: aurora-details
namespace: aurora-app
data:
aurora.clusterID: aurora-mysql-engine # Aurora DB cluster ID
Create Blueprint
A Blueprint resource should be created via the following command:
$ kubectl --namespace kasten-io apply -f \
https://raw.githubusercontent.com/kanisterio/kanister/0.109.0/examples/aws-rds/aurora-mysql/rds-aurora-snap-blueprint.yaml
Alternatively, use the Blueprints page on K10 Dashboard to create the Blueprint resource.
Once the Blueprint is created, annotate the ConfigMap with the below annotations to instruct K10 to use this Blueprint while performing data management operations on the RDS Aurora DB cluster.
$ kubectl --namespace aurora-app annotate configmap/aurora-details \
kanister.kasten.io/blueprint=rds-aurora-snapshot-bp
Finally, use K10 to backup and restore the RDS Aurora DB cluster.