Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds actions to add/del routing entries from aws_route_table resource #404

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jlferrer
Copy link

When using actions :route_add and :route_del for an specified route_table
resorce, the routing entry defined in the 'route' attribute will be
added or deleted from the routing table, respectively.

This allows more fine grained control on the aws routing table objects.

example

aws_route_table 'test_route_table' do
  vpc 'test_vpc'
  routes '0.0.0.0/0' => :internet_gateway
end

aws_route_table 'test_route_table' do
  vpc 'test_vpc'
  route '2.0.0.0/8' => :internet_gateway
  action :route_add
end

aws_route_table 'test_route_table' do
  vpc 'test_vpc'
  route '2.0.0.0/8' => :internet_gateway
  action :route_del
end

# The first commit's message is:

Adds actions to add/del routing entries from aws_route_table resource

When using actions :route_add and :route_del for an specified route_table
resorce, the routing entry defined in the 'route' attribute will be
added or deleted from the routing table, respectively.

This allows more fine grained control on the aws routing table objects.

# This is the 2nd commit message:

Delete the route if exists when using add_route

By default, catch exception when route exists and delete first before
adding the route.
@moos3
Copy link

moos3 commented Sep 30, 2016

any chance of this getting merged in to master?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants