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

Add AwsRouteInvalidRouteTableDetector #90

Merged
merged 1 commit into from
Apr 9, 2017

Conversation

wata727
Copy link
Member

@wata727 wata727 commented Apr 9, 2017

Fix #87

This detector detects invalid route table ID references. For example:

resource "aws_route" "foo" {
    route_table_id = "rtb-nat-gw-a" # invalid route table ID
}

Terraform result:

Error applying plan:

1 error(s) occurred:

* aws_route.r: 1 error(s) occurred:

* aws_route.r: Error creating route: InvalidRouteTableId.Malformed: Invalid id: "rtb-nat-gw-a"
        status code: 400, request id: hogehoge

Terraform does not automatically rollback in the face of errors.
Instead, your Terraform state file has been partially updated with
any resources that successfully completed. Please address the error
above and apply again to incrementally change your infrastructure.

TFLint result:

template.tf
        ERROR:2 "rtb-nat-gw-a" is invalid route table ID.

Result: 1 issues  (1 errors , 0 warnings , 0 notices)

@wata727 wata727 merged commit 1f96916 into master Apr 9, 2017
@wata727 wata727 deleted the aws_route_invalid_route_table branch April 9, 2017 07:09
bendrucker pushed a commit that referenced this pull request Jun 13, 2023
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.

None yet

1 participant