-
-
Save anonymous/3fe02bdba9f3cd05f580 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
instance = ec2.instances.create( | |
:instance_type => $instance_type, | |
:image_id => 'ami-x8x9x1x8', | |
:block_device_mappings => [{ | |
:device_name => "/dev/xvdz", | |
:ebs => { | |
:volume_size => $volume_size.to_i, | |
:snapshot_id => $volume_image, | |
:volume_type => 'standard' | |
}, | |
}], | |
:key_name => $keypair_name, | |
:security_groups => @securitygroup | |
) | |
/Library/Ruby/Gems/2.0.0/gems/aws-sdk-1.29.1/lib/aws/core/client.rb:366:in `return_or_raise': The image id '[ami-x8x9x1x8]' does not exist (AWS::EC2::Errors::InvalidAMIID::NotFound) | |
from /Library/Ruby/Gems/2.0.0/gems/aws-sdk-1.29.1/lib/aws/core/client.rb:467:in `client_request' | |
from (eval):3:in `run_instances' | |
from /Library/Ruby/Gems/2.0.0/gems/aws-sdk-1.29.1/lib/aws/ec2/instance_collection.rb:294:in `create' | |
from solr.rb:176:in `create' | |
from solr.rb:257:in `create' | |
from solr.rb:299:in `<main>' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment