Giter Site home page Giter Site logo

ami-to-build-redis's Introduction

Redis AMI builder using Packer

This repository contains a simple example of using Packer to create an Amazon Machine Image (AMI) that runs Redis.

Prerequisites

To build the AMI, follow the below steps:

  • Packer installed on your local machine
  • An AWS account
  • Your AWS access credentials (AWS Access Key ID and Secret Access Key)
  • Git installed on local machine

Getting Started

  1. Clone this repository to your local machine using Git:

    git clone [email protected]:sirishacyd/ami-to-build-redis.git
    
  2. Navigate to the directory containing the repository:

    cd ami-to-build-redis.git
    
  3. Set your AWS credentials as environment variables:

    export AWS_ACCESS_KEY=<your-aws-access-key>
    export AWS_SECRET_KEY=<your-aws-secret-key>
    export AWS_REGION=<aws-region> 
    
  4. Validate the Packer template to make sure there are no errors:

    packer validate packer_template.json
    
  5. If the template is valid, build the AMI using Packer:

    packer build packer_template.json
    
    • Packer will begin building the AMI. This may take a few minutes.

    • Once the build is complete, Packer will output the ID of the new AMI.

Log File For the AMI image Built done by packer

LogFile

AMI Built by Packer


==> Wait completed after 6 minutes 53 seconds

==> Builds finished. The artifacts of successful builds are:
--> amazon-ebs: AMIs were created:
ap-south-1: ami-06a1ded2dc005181d

init

Launching Instance with AMI that has redis built in using packer

init

Loginng in to the Instance using AMI we have built

ssh -i "test.pem" [email protected]

init

Running Redis Server

cd /home/redisbuilder/redis/src
./redis-server

init

ami-to-build-redis's People

Contributors

sirishacyd avatar

Watchers

 avatar  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.