meu arquivo Vagrantfile tá assim:
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 = "XXXXXXXXXX"
aws.secret_access_key = "XXXXXXXXXXXXXXX"
aws.keypair_name = "devops"
aws.ami = "ami-efd0428f"
aws.security_groups = ['devops']
aws.instance_type = "t2.micro"
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
end
end
e quando eu dou um 'vagrant up --provider=aws', dá a seguinte mensagem:
WARNING: Nokogiri was built against LibXML version 2.9.0, but has dynamically loaded 2.9.2
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-efd0428f
==> 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: -- 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
se alguém puder me ajudar, vou agradecer bastante