Skip to content

Instantly share code, notes, and snippets.

@hamakn
Created July 26, 2012 09:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hamakn/3181157 to your computer and use it in GitHub Desktop.
Save hamakn/3181157 to your computer and use it in GitHub Desktop.
workaround for micro bosh northeast region
# /var/vcap/packages/director/bosh/director/vendor/bundle/ruby/1.9.1/gems/bosh_aws_cpi-0.6.0/lib/cloud/aws/cloud.rb
#aki = find_aki(architecture, root_device_name)
aki = "aki-ee5df7ef"
# we could set :description here, but since we don't have a
# handle to the stemcell name and version, we can't set it
# to something useful :(
image_params = {
:name => "BOSH-#{generate_unique_name}",
#:architecture => architecture,
:architecture => "x86_64",
:kernel_id => aki,
#:root_device_name => root_device_name,
:root_device_name => "/dev/sda",
:block_device_mappings => {
"/dev/sda" => { :snapshot_id => snapshot.id },
"/dev/sdb" => "ephemeral0"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment