Skip to content

Commit

Permalink
docs/route_table: Trim down example
Browse files Browse the repository at this point in the history
  • Loading branch information
YakDriver committed Aug 3, 2023
1 parent 0c1db21 commit fc41f7a
Showing 1 changed file with 0 additions and 24 deletions.
24 changes: 0 additions & 24 deletions website/docs/r/route_table.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,6 @@ First, adopt an existing AWS-created route:
```terraform
resource "aws_vpc" "test" {
cidr_block = "10.1.0.0/16"
tags = {
Name = "leibovitz"
}
}
resource "aws_route_table" "test" {
Expand All @@ -90,10 +86,6 @@ resource "aws_route_table" "test" {
cidr_block = "10.1.0.0/16"
gateway_id = "local"
}
tags = {
Name = "leibovitz"
}
}
```

Expand All @@ -102,10 +94,6 @@ Next, update the target of the route:
```terraform
resource "aws_vpc" "test" {
cidr_block = "10.1.0.0/16"
tags = {
Name = "leibovitz"
}
}
resource "aws_route_table" "test" {
Expand All @@ -115,27 +103,15 @@ resource "aws_route_table" "test" {
cidr_block = aws_vpc.test.cidr_block
network_interface_id = aws_network_interface.test.id
}
tags = {
Name = "leibovitz"
}
}
resource "aws_subnet" "test" {
cidr_block = "10.1.1.0/24"
vpc_id = aws_vpc.test.id
tags = {
Name = "leibovitz"
}
}
resource "aws_network_interface" "test" {
subnet_id = aws_subnet.test.id
tags = {
Name = "leibovitz"
}
}
```

Expand Down

0 comments on commit fc41f7a

Please sign in to comment.