Solucionado (ver solução)
Solucionado
(ver solução)
2
respostas

Criação de vm na aws InvalidParameterValue => Value () for parameter groupId is invalid. The value cannot be empty

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.

2 respostas
solução!

oi, Sidney

tudo bem?

esse erro do plugin é super genérico, mas no geral indica alguma inconsistencia nas configurações. A campeã costuma ser a região.

confere em qual região essa sua ami-34afc458 foi criada e se ela bate com a região us-west-2 que o instrutor usou no curso?

espero que a info ajude/ se não nos avise que certamente vamos te ajudar a investigar e resolver o problema.

abracos

Olá!

Passei pelo mesmo problema. Mudei para a região para US East (N. Virginia) e funcionou.

Obrigado pela dica @turini!

Quer mergulhar em tecnologia e aprendizagem?

Receba a newsletter que o nosso CEO escreve pessoalmente, com insights do mercado de trabalho, ciência e desenvolvimento de software