Skip to content
This repository has been archived by the owner on Jan 31, 2020. It is now read-only.

Create a vagrantfile that launches an AWS sGMS instance #173

Open
malachig opened this issue Mar 4, 2015 · 5 comments
Open

Create a vagrantfile that launches an AWS sGMS instance #173

malachig opened this issue Mar 4, 2015 · 5 comments

Comments

@malachig
Copy link
Collaborator

malachig commented Mar 4, 2015

@sakoht has an example of this. ;)

@sakoht
Copy link
Contributor

sakoht commented Mar 4, 2015

Example Vagrantfile below. It requires that the user be set up to use AWS in general.

Vagrant.configure("2") do |config|
  config.vm.box = "dummy"

  config.vm.provider :aws do |aws, override|
    aws.access_key_id = "YOUR KEY"
    aws.secret_access_key = "YOUR SECRET KEY"
    aws.keypair_name = "KEYPAIR NAME"

    aws.ami = "ami-7747d01e"

    override.ssh.username = "ubuntu"
    override.ssh.private_key_path = "PATH TO YOUR PRIVATE KEY"
  end
end

https://github.com/nabeken/vagrant-aws

@sakoht
Copy link
Contributor

sakoht commented Mar 16, 2015

I pushed up Vagrantfile.standalone.aws.

It requires that 4 environment variables be set:
AWS_ACCESS_KEY
AWS_SECRET_KEY
AWS_PEM_PATH (full path to the downloaded .pem file.)
AWS_KEYPAIR_NAME (keypair name that goes with the above .pem file)

@sakoht
Copy link
Contributor

sakoht commented Mar 16, 2015

@sakoht
Copy link
Contributor

sakoht commented Mar 16, 2015

To test (after setting environment variables):

ln -s Vagrantfile.standalone.aws Vagrantfile
vagrant up

Ideally we would have some of the subsequent logic in a shell-script, and un-comment provision.sh to run it automatically.

@malachig
Copy link
Collaborator Author

This is cool. Will give it a try. @gatoravi have you tried this yet? Lets chat about the details when you have a minute. I guess as it is set up, it will only work in us-east-1 and us-west-2?

Another question I have is, where do these aws.security_group values come from?

Can we rename these variables to something GMS related (e.g. gms-aws-instance and gms-aws)?

config.vm.box = "dummy"
config.vm.hostname = 'sstest' 

If we can get this working we should create a Wiki page with instructions describing how you get it fired up with your own AWS account.

Note, its doubtful that an install would succeed on a t2.micro instance.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants