GithubHelp home page GithubHelp logo

allyshoww-terraform-chef-packer's Introduction

TERRAFORM-PACKER-CHEF

The objective of this repo is to deploy an Amazon AMI with OpenVPN installed. This package is installed with Chef and AMI is build with Packer.

PRE-REQUISITES

1-) Packer - https://www.packer.io 2-) Terraform - https://www.terraform.io 3-) A AWS Access Keys and Secret Keys credentials (For this repo, you can use an IAM account with full admin access)

TO-DO

In the first moment, you have to configure your local machine to access a AWS account through the access keys/secret keys. You can input your keys in this command:

aws configure

After this, clone this repo:

git clone 

Go to folder Packer and build the image through the command:

sudo packer build Image.Base.json

When the command is finished, save the AMI code with the image built with OpenVPN in Packer. Now, you need to insert your AWS Secret Key and Access key in terraform.tfvars file.

Now, build an Amazon infrastructure with Terraform. Go to Terraform folder on cloned repo and type

terraform init

After this, you plan the infrastructure deploy:

terraform plan -out="deploy.out"

In the end, apply this what was planned in the past step:

terraform apply deploy.out

To destroy this environment, run this command:

terraform destroy

allyshoww-terraform-chef-packer's People

Contributors

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