Caros,
não estou conseguindo criar a vm na aws, toda vez que tento ocorre o erro abaixo:
Vagrant.configure("2") do |config|
config.vm.box = "ubuntu_aws"
config.vm.box_url = "https://github.com/mitchellh/vagrant-
aws/raw/master/dummy.box"
config.vm.provider :aws do |aws, override|
aws.access_key_id = "xxxxxx"
aws.secret_access_key = "xxxxx"
aws.region = "us-west-2"
aws.instance_type = "t2.micro
aws.keypair_name = "servidoraws"
aws.ami = "ami-34afc458"
aws.security_groups = ["sg-ba2451df"]
override.ssh.username = "ubuntu"
override.ssh.private_key_path = "xxxxxx.pem"
end
config.vm.define :web do |web_config|
web_config.vm.provision "puppet" do |puppet|
puppet.manifest_file = "web.pp"
end
web_config.vm.provider :aws do |aws|
aws.tags = { 'Name' => 'MusicJungle (vagrant)'}
end
end
end
Mensagem de erro abaixo:
sidney@sidney-desktop:~/Cursos_Alura/vagrant/servidoraws$ vagrant up --provider=aws
Bringing machine 'web' up with 'aws' provider...
==> web: Warning! The AWS provider doesn't support any of the Vagrant
==> web: high-level network configurations (`config.vm.network`). They
==> web: will be silently ignored.
==> web: Launching an instance with the following settings...
==> web: -- Type: t2.micro
==> web: -- AMI: ami-34afc458
==> web: -- Region: us-west-2
==> web: -- Keypair: servidoraws
==> web: -- Security Groups: ["sg-ba2451df"]
==> web: -- Block Device Mapping: []
==> web: -- Terminate On Shutdown: false
==> web: -- Monitoring: false
==> web: -- EBS optimized: false
==> web: -- Source Destination check:
==> web: -- Assigning a public IP address in a VPC: false
==> web: -- VPC tenancy specification: default
==> web: Warning! Vagrant might not be able to SSH into the instance.
==> web: Please check your security groups settings.
There was an error talking to AWS. The error message is shown
below:
InvalidParameterValue => Value () for parameter groupId is invalid. The value cannot be empty
Podem dar uma ajuda?
Atenciosamente Sidney.