Foreman Compute EC2

I'm using Foreman to provision/manage machines in AWS GovCloud. It's an
isolated region, us-gov-west-1. It uses different credentials and isn't
listed if you query the normal ec2 endpoint. I was able to get Foreman to
successfully connect to the GovCloud by hard coding the region Fog::Compute
constructor. As shown below. Is there anyway to pass this information in
via configuration? I'm not a Ruby developer and don't fully follow the
code. If there isn't should I put in a ticket to make the region drop down
editable?

def client
  @client ||= ::Fog::Compute.new(:provider => "AWS", :aws_access_key_id 

=> u
ser, :aws_secret_access_key => password, :region => "us-gov-west-1")
end

It's worth filing a ticket (set category to Compute resources - EC2),
though patches are always welcome, especially for something this specific.

If it's solvable by changing the endpoint URL, perhaps just implementing
Feature #2284: support for alternate urls for EC2 compute resources - Foreman would help.

··· On 14/10/14 17:02, Aaron Donovan wrote: > I'm using Foreman to provision/manage machines in AWS GovCloud. It's an > isolated region, us-gov-west-1. It uses different credentials and isn't > listed if you query the normal ec2 endpoint. I was able to get Foreman > to successfully connect to the GovCloud by hard coding the region > Fog::Compute constructor. As shown below. Is there anyway to pass this > information in via configuration? I'm not a Ruby developer and don't > fully follow the code. If there isn't should I put in a ticket to make > the region drop down editable?


Dominic Cleal
Red Hat Engineering