Solucionado (ver solução)
Solucionado
(ver solução)
1
resposta

Erro ao subir box para a Amazon

Não estou conseguindo subir a minha box para a Amazon. Vou colocar abaixo o meu Vagrantfile e logo em seguida a saída de erro que ocorre ao executar o up

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 = "meu_id"
        aws.secret_access_key = "minha_key"

        aws.keypair_name = "devops"
        aws.ami = "ami-6989a659"
        aws.security_groups = ['devops']

        override.ssh.username = "ubuntu"
        override.ssh.private_key_path = "devops.pem"
   end

  config.vm.define :web do |web_config|
        web_config.vm.provider :aws do |aws|
            aws.tags = { 'Name' => 'MusicJungle (vagrant)'}
        end
        web_config.vm.provision "puppet" do |puppet|
                puppet.manifest_file = "web.pp"
        end
  end

end

Agora, a saída de erro:

$ vagrant up --provider=aws
WARNING: Nokogiri was built against LibXML version 2.9.2, but has dynamically loaded 2.9.3
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: m3.medium
==> web:  -- AMI: ami-6989a659
==> web:  -- Region: us-east-1
==> web:  -- Keypair: devops
==> web:  -- Security Groups: ["devops"]
==> web:  -- Block Device Mapping: []
==> web:  -- Terminate On Shutdown: false
==> web:  -- Monitoring: false
==> web:  -- EBS optimized: false
==> web:  -- Assigning a public IP address in a VPC: false
==> 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
1 resposta
solução!

Acabei pesquisando no fórum, uma outra dúvida e outro erro, mas que acabou solucionando o problema. Apenas adicionei no Vagrantfile o seguinte:

aws.region = "us-west-2"

Após isso a máquina subiu corretamente na Amazon.

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