From 5a061b14846072acef55e51079d70455cfd657b9 Mon Sep 17 00:00:00 2001 From: "Scott S. Lowe" Date: Sun, 25 Sep 2016 21:58:04 -0600 Subject: [PATCH] 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. --- vagrant-aws/Vagrantfile | 1 + vagrant-aws/instances.yml | 8 ++++---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/vagrant-aws/Vagrantfile b/vagrant-aws/Vagrantfile index f7ef553..a03dca2 100644 --- a/vagrant-aws/Vagrantfile +++ b/vagrant-aws/Vagrantfile @@ -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'] diff --git a/vagrant-aws/instances.yml b/vagrant-aws/instances.yml index 9e5852b..f43f43b 100644 --- a/vagrant-aws/instances.yml +++ b/vagrant-aws/instances.yml @@ -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"