8000 GitHub - PavanRaga/packer-ansible-terraform: This repo is a app to upload and retrieve files
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

PavanRaga/packer-ansible-terraform

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This repo serves as an example on how to provision infrastructure for distrubuted services. To keep it simple, i have written a simple microservice which exposed its API endpoints to uploads and retrives dummy files on AWS EC2 using packer, ansible, terraform.

Main objective of this repo is to see tools such as packer, ansible, terraform in action and how they complement each other.

Pre-requisites:

  1. AWS CLI.
  2. AWS resource access. configured by "aws configure" with access key id and secret key.
  3. Ansible installed
  4. Terraform installed.
  5. packer installed.

Deploy instructions:

  1. make init #This will create required SSH keys
  2. make packer-build #this will create AMI with required packages. ami-id will be written to terroform directory.
  3. make terrform-apply # this will provision and deploy the service to ec2.
  4. Use "http://{elb-dns}/uploader" to upload file
  5. Use "http://{elb-dns}/get?file=filename" to retrive file
  6. make terrform-destroy # this will de-provision the resources.

Arch:

Alt text

About

This repo is a app to upload and retrieve files

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0