Drone plugins > AWS RDS Snapper
AWS RDS Snapper
by tuannvm
The rds-snapper plugin cleans up specific RDS instance's snapshots, keeps specified number of copies and creates new snapshots.
Example
kind: pipeline
name: default
steps:
- name: rds-snapper
image: quay.io/honestbee/rds-snapper
settings:
aws_access_key: AWS_ACCESS_KEY_ID
aws_secret_key: AWS_SECRET_ACCESS_KEY
action: "create"
dbname: "<db-name>"
suffix: "<snapshot-name-suffix>"
keep: <numbers-to-keep>
Properties
action
stringrequiredchoose which features to execute (clear|create|export)
Default: none
aws_access_key
stringrequiredAWS access key
Secret recommendedDefault: none
aws_secret_key
stringrequiredAWS secret key
Secret recommendedDefault: none
aws_region
stringrequiredbucket region (us-east-1, eu-west-1, etc)
Default: none
keep
numberoptionalnumber of snapshots to keep
Default: 5
dbname
stringoptionalrds instance's name
Default: none
suffix
stringoptionalsnapshot's name suffix.
Default: randomly generated