Drone plugins > AWS RDS Snapper
amazon_rds.svg

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

    stringrequired

    choose which features to execute (clear|create|export)

    Default: none

  • aws_access_key

    stringrequired

    AWS access key

    Secret recommended

    Default: none

  • aws_secret_key

    stringrequired

    AWS secret key

    Secret recommended

    Default: none

  • aws_region

    stringrequired

    bucket region (us-east-1, eu-west-1, etc)

    Default: none

  • keep

    numberoptional

    number of snapshots to keep

    Default: 5

  • dbname

    stringoptional

    rds instance's name

    Default: none

  • suffix

    stringoptional

    snapshot's name suffix.

    Default: randomly generated