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

provider/aws: Add aws_default_route_table resource #8323

Merged
merged 8 commits into from
Aug 25, 2016

Conversation

catsby
Copy link
Contributor

@catsby catsby commented Aug 19, 2016

Adds a resource to manage the default route table that comes with every VPC.
This is an advanced resource with caveats mentioned in the documentation.

Part of #6093

// revoke all default and pre-existing routes on the default route table.
// In the UPDATE method, we'll apply only the rules in the configuration.
log.Printf("[DEBUG] Revoking default routes for Default Route Table for %s", d.Id())
if err := revokeAllRouteTableRules(d.Id(), meta); err != nil {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a potentially for this to cause issues if the revoke happens and the update fails?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We want to revoke the rules regardless if there is any update to be made. The procedure is that during "creation" we wipe the slate clean. This is documented to warn people .

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@stack72
Copy link
Contributor

stack72 commented Aug 25, 2016

Few small things but this is really good - loved the note about being wary! I can forsee people getting themselves into trouble here so it's good to point this out in advance

@stack72
Copy link
Contributor

stack72 commented Aug 25, 2016

The PR looks good to me - the questions were based more on my misunderstanding of how it would work. Explanations and the documentation help to clear this up

LGTM :)

@catsby catsby merged commit 49ecfe8 into master Aug 25, 2016
@catsby catsby deleted the f-aws-default-route-table branch August 25, 2016 21:02
richardbowden pushed a commit to richardbowden/terraform that referenced this pull request Aug 27, 2016
* provider/aws: Add docs for Default Route Table

* add new default_route_table_id attribute, test to VPC

* stub

* add warning to docs

* rough implementation

* first test

* update test, add swap test

* fix typo
@ghost
Copy link

ghost commented Apr 22, 2020

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@ghost ghost locked and limited conversation to collaborators Apr 22, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants