mirror of
https://codeberg.org/scottslowe/learning-tools.git
synced 2026-03-11 09:04:37 +00:00
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:
parent
a4178a889b
commit
5a061b1484
2 changed files with 5 additions and 4 deletions
1
vagrant-aws/Vagrantfile
vendored
1
vagrant-aws/Vagrantfile
vendored
|
|
@ -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']
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Reference in a new issue