Add support for specifying the AWS instance type

Added line to Vagrantfile to read instance_type from instances.yml; this will allow user to specify the AWS instance type to be created.

Addresses #54.
This commit is contained in:
Scott S. Lowe 2016-09-25 21:58:04 -06:00
parent a4178a889b
commit 5a061b1484
2 changed files with 5 additions and 4 deletions

View file

@ -30,6 +30,7 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
aws.region = instances['region']
aws.ami = instances['ami']
aws.security_groups = instances['security_groups']
aws.instance_type = instances['instance_type']
# Specify username and private key path
override.ssh.username = instances['user']

View file

@ -1,7 +1,7 @@
---
instance_type: "m3.medium"
region: "us-west-1"
ami: "ami-842355e4"
instance_type: "t2.micro"
region: "us-west-2"
ami: "ami-746aba14"
user: "ubuntu"
security_groups: ["launch-wizard-1"]
security_groups: ["default"]
keypair_name: "aws_rsa"