Class: Chef::Resource::AwsRouteTable
- Inherits:
-
Provisioning::AWSDriver::AWSResourceWithEntry
- Object
- Provisioning::AWSDriver::AWSResourceWithEntry
- Chef::Resource::AwsRouteTable
- Defined in:
- lib/chef/resource/aws_route_table.rb
Overview
An AWS route table, specifying where to route traffic destined for particular sets of IPs.
‘name` is not guaranteed unique for an AWS account; therefore, Chef will store the route table ID associated with this name in your Chef server in the data bag `data/aws_route_Table/<name>`.
API documentation for the AWS Ruby SDK for VPCs (and the object returned from ‘aws_object` can be found here:
Instance Method Summary collapse
Instance Method Details
#aws_object ⇒ Object
96 97 98 99 100 101 102 103 104 105 106 |
# File 'lib/chef/resource/aws_route_table.rb', line 96 def aws_object driver, id = get_driver_and_id result = driver.ec2.route_tables[id] if id begin # try accessing it to find out if it exists result.vpc if result rescue AWS::EC2::Errors::InvalidRouteTableID::NotFound result = nil end result end |