Giter VIP home page Giter VIP logo

redisbackup-to-s3's Introduction

redisbackup-to-s3

Taking the db dump from the AWS Elasticache (Redis) and copying it to AWS S3

Here we are using [Terraform] (https://www.terraform.io/) inorder to do the Automation.

#REQUIREMENTS

  • Install Terraform
  • You need to give the below values
AWS ACCESS KEY
AWS SECRET KEY
AWS REGION
AWS AVAILABILITY ZONE
AWS INSTANCE TYPE
KEY PAIR
KEY PAIR NAME on AWS
SUBNET ID
SECURITY GROUP ID
AWS ELASTICACHE ENDPOINT (REDIS)
AWS ELASTICACHE PORT	 

#HOW TO RUN THE COMMAND

vishnudxb@server:~# ./terraform apply -var 'access_key=<provide access key>' -var 'secret_key=<provide secret key>' -var 'key_file=<provide your pem file>' \
                                      -var 'key_name=<give the keypair name on AWS>' -var 'region=<aws region>' -var '<availability_zone>' \
                                      -var 'instance_type=<your instance type>' -var 'subnet_id=<your subnetid>'  -var 'security_id=<your security id>' \
                                      -var 'redis_endpoint=<your aws elasticache endpoint>' -var 'redis_port=<your elasticache port>' -var 'aws_bucket=<your s3 bucketname>'

#For example

vishnudxb@server:~# ./terraform apply -var 'access_key=PUTMYACCESSKEY' -var 'secret_key=PUTMYSECRETKEY' -var 'key_file=/home/redis.pem' -var 'key_name=redis' \
                                      -var 'instance_type=m3.large' -var 'region=us-east-1' -var 'availability_zone=us-east-1a' -var 'subnet_id=subnet-e94xxxx' \
                                      -var 'security_id=sg-7xxxx1d' -var 'redis_endpoint=redis.myidxxxx.ng.0001.use1.cache.amazonaws.com' \
                                      -var 'redis_port=6379' -var 'aws_bucket=redis-db-backup'

redisbackup-to-s3's People

Contributors

vishnudxb avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.