Skip to content

Simple recipe for deploying an AMI on a defined EC2 instance.

Notifications You must be signed in to change notification settings

prsolans/vagrant-aws

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ba9af5d · Jan 21, 2014

History

24 Commits
Dec 17, 2012
Dec 16, 2012
Dec 16, 2012
Jan 21, 2014
Jan 21, 2014

Repository files navigation

This recipe deploys an instance on EC2 based on the parameters in Vagrantfile, and using vagrant up --provider=aws.

Credit to Alex Disler for building a box described below and provided fine instructions

Chef solo PHP 5.4 environment

Description

Chef solo config files to install a php 5.4 environment that can be used with vagrant or deployed to AWS.

Includes

  • Ubuntu Precise 64
  • php 5.4
  • apache
  • mysql
  • sqlite
  • git
  • ntp
  • vim
  • zsh

Installation

install and run vagrant

$ gem install vagrant
$ vagrant up

When vagrant is done, you should see the apache default index.html file in the www folder. Open http://localhost:8080/ to test it.

git submodules

$ git submodule init && git submodule update

Run on an EC2 instance

Requirements

you will need the key .pem file and the public DNS of your instance.

install kinfe-solo

$ gem install knife-solo

Create a config file (ignore the warnings)

$ knife configure -r . --defaults

Install ruby and vagrant on your instance

$ knife prepare -i ~/path/to/file.pem [email protected]

It will also generate a json file in the /nodes folder. replace its contents with

  { "run_list": ["role[web]"] }

Deploy the chef solo config to your instance

$ knife cook -i ~/path/to/file.pem [email protected]

License

(The MIT License)

Copyright (c) 2012 <[email protected]>

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

About

Simple recipe for deploying an AMI on a defined EC2 instance.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published