def connect(emr=true, ec2=false)
options = {:region => @config["aws_region"]}
if ec2
@ec2_interface = RightAws::Ec2.new(
@config["aws_access_key_id"],
@config["aws_secret_key_id"],
options
)
end
if emr
@emr_interface = RightAws::EmrInterface.new(
@config["aws_access_key_id"],
@config["aws_secret_key_id"],
options
)
end
end
This does:
def connect(emr=true, ec2=false)
options = {:region => @config["aws_region"]}
if ec2
@ec2_interface = RightAws::Ec2.new(
@config["aws_access_key_id"],
@config["aws_secret_key_id"],
options
)
end
if emr
@emr_interface = RightAws::EmrInterface.new(
@config["aws_access_key_id"],
@config["aws_secret_key_id"],
:region => @config["aws_region"]
)
end
end
The error:
E, [2012-11-21T18:10:19.793520 #43919] ERROR -- : us-west-2.us-west-2.ec2.amazonaws.com temporarily unavailable: (getaddrinfo: nodename nor servname provided, or not known)
This does not work:
This does:
The error: