Closed mafernando closed 9 years ago
References:
Issues:
details
need to be nil
not empty string. See AWS Infrastructure provisioner.connection.delete_vpc
will remove all associated resources with the VPC, may want to look into thisExamples:
create a vpc on AWS (see method here)
[20] pry(#<Jellyfish::Fog::AWS::VPC>)> connection.create_vpc(details['cidr_block'])
=> #<Excon::Response:0x007fe6767abe08
@body="",
@data=
{:body=>{"vpcSet"=>[{"tagSet"=>{}, "vpcId"=>"vpc-b8053cdd", "state"=>"pending", "cidrBlock"=>"10.0.0.0/16", "dhcpOptionsId"=>"dopt-0ce6fc6e"}], "requestId"=>"XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX"},
:headers=>{"Content-Type"=>"text/xml;charset=UTF-8", "Vary"=>"Accept-Encoding", "Date"=>"Mon, 01 Jun 2015 19:57:53 GMT", "Server"=>"AmazonEC2"},
:status=>200,
:status_line=>"HTTP/1.1 200 OK\r\n",
:reason_phrase=>"OK",
:remote_ip=>"ZZZ.ZZZ.ZZZ.Z",
:local_port=>#####,
:local_address=>"YYY.YYY.YYY.YYY"},
@headers={"Content-Type"=>"text/xml;charset=UTF-8", "Vary"=>"Accept-Encoding", "Date"=>"Mon, 01 Jun 2015 19:57:53 GMT", "Server"=>"AmazonEC2"},
@local_address="YYY.YYY.YYY.YYY",
@local_port=60972,
@remote_ip="ZZZ.ZZZ.ZZZ.Z",
@status=200>
[21] pry(#<Jellyfish::Fog::AWS::VPC>)> connection.vpcs
=> [ <Fog::Compute::AWS::VPC
id="vpc-XXXXXXXX",
state="available",
cidr_block="10.0.0.0/16",
dhcp_options_id="dopt-0ce6fc6e",
tags={},
tenancy="default"
>]
Closed with 03b778e5877aed42f8ccdbe2e656b3ab089d8bf6
flavor_id
attribute insteadinstance_id
for size of instanceNeed to decide what kinds of options we want to provide beyond the basic for the newly added product types- to be revisited later