James Masson
2014-05-06 16:11:55 UTC
Hi,
we're trying to use Fog to create a new instance in a VPC, with
simultaneous non-EIP Public and specific Private IPs.
Command is of the format:
connection.servers.create(
:vpc_id => vpc.id,
:subnet_id => sn_public.subnet_id,
:image_id => 'ami-ed352799',
:flavor_id => 't1.micro',
:private_ip_address => '10.250.0.5',
:associate_public_ip => true,
:tags => {'Name' =>
'NAT::'+vpc.id+'::'+sn_public.subnet_id})
this blows up with:
Fog::Compute::AWS::Error: InvalidParameterCombination => Network interfaces
and an instance-level private IP address may not be specified on the same
request
from
/Users/.rbenv/versions/2.0.0-p451/gemsets/ccp-api/gems/excon-0.33.0/lib/excon/middlewares/expects.rb:6:in
`response_call'
Some googling brings me - https://github.com/aws/aws-cli/pull/502
If I remove either the request for the specific private ip
(private_ip_address) - or the request for a private IP
(associate_public_ip) - the request succeeds.
I'm thinking that my use case requires some network object syntax magic for
this combination to work. Any ideas?
thanks
James M
we're trying to use Fog to create a new instance in a VPC, with
simultaneous non-EIP Public and specific Private IPs.
Command is of the format:
connection.servers.create(
:vpc_id => vpc.id,
:subnet_id => sn_public.subnet_id,
:image_id => 'ami-ed352799',
:flavor_id => 't1.micro',
:private_ip_address => '10.250.0.5',
:associate_public_ip => true,
:tags => {'Name' =>
'NAT::'+vpc.id+'::'+sn_public.subnet_id})
this blows up with:
Fog::Compute::AWS::Error: InvalidParameterCombination => Network interfaces
and an instance-level private IP address may not be specified on the same
request
from
/Users/.rbenv/versions/2.0.0-p451/gemsets/ccp-api/gems/excon-0.33.0/lib/excon/middlewares/expects.rb:6:in
`response_call'
Some googling brings me - https://github.com/aws/aws-cli/pull/502
If I remove either the request for the specific private ip
(private_ip_address) - or the request for a private IP
(associate_public_ip) - the request succeeds.
I'm thinking that my use case requires some network object syntax magic for
this combination to work. Any ideas?
thanks
James M
--
You received this message because you are subscribed to the Google Groups "ruby-fog" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ruby-fog+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
For more options, visit https://groups.google.com/d/optout.
You received this message because you are subscribed to the Google Groups "ruby-fog" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ruby-fog+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
For more options, visit https://groups.google.com/d/optout.