module AwsExtensions::EC2::RouteTable
Public Instance Methods
diffable_routes()
click to toggle source
Public: Selects the routes in the route table that we care about by filtering out the default route with the local gateway and any routes that are for s3 service endpoints (ones that have a destination_prefix_list_id)
# File lib/aws_extensions/ec2/RouteTable.rb, line 20 def diffable_routes self.routes.select { |route| route.gateway_id != "local" and route.origin != "CreateRouteTable" and !route.destination_prefix_list_id } end
name()
click to toggle source
Public: Returns the value of the “Name” tag for the route table
# File lib/aws_extensions/ec2/RouteTable.rb, line 6 def name self.tags.select { |tag| tag.key == "Name" }.first.value rescue nil end
subnet_ids()
click to toggle source
Public: Returns an array of subnet ids associated with the route table
# File lib/aws_extensions/ec2/RouteTable.rb, line 13 def subnet_ids self.associations.map { |assoc| assoc.subnet_id } end