amazon web services - Vagrant AWS ELB's registering -
hello trying create instances in aws using vagrant. works fine. but, if add availability zones elb has no instances , if create instance in aws using vagrant. vagrant creates instance , @ time of registering elb register's , de-registers , terminates instance? how resolve it? can register instance 2 elb's using vagrant?
editor's note:
so's role is, link not trusted. pasted vagrantfile here directly.
vagrant.configure("2") |config| config.vm.box = "ubuntu_aws" config.vm.box_url = "https://github.com/mitchellh/vagrant-aws/raw/master/dummy.box" config.vm.synced_folder "../.", "/vagrant", id: "vagrant-root" config.vm.provider :aws |aws, override| aws.keypair_name = "development" override.ssh.private_key_path = "~/.ssh/development.pem" aws.instance_type = "t1.micro" aws.security_groups = "development" aws.ami = "ami-c5afc2ac" aws.elb = [elb1, elb2] override.ssh.username = "ubuntu" aws.tags = { 'name' => 'web app', } end
Comments
Post a Comment