-
Notifications
You must be signed in to change notification settings - Fork 541
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 vnet param to tunnel routes #1668
Merged
Merged
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
ddaa033
Add vnet param
vavsab 3b1b81e
1) Fix schema 2) Add release notes 3) Add docs 4) Fix invalid id for …
vavsab 68ca387
Add release notes
vavsab 82032e4
Make vnet id required during import
vavsab 7b91d14
Make vnet id forcenew
vavsab b2df458
Use string checksum
vavsab aaf8d19
Move to generaed docs
vavsab e8b8fb8
Fix examples
vavsab d4e1d20
Generate docs
vavsab 3851b6e
Add comments to import
vavsab b1dc0cf
Clarify docs
vavsab File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
```release-note:enhancement | ||
resource/cloudflare_tunnel_route: Add `virtual_network_id` attribute | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# Use account ID, network CIDR and virtual network ID. | ||
$ terraform import cloudflare_tunnel_route c4a7362d577a6c3019a474fd6f485821/192.0.2.24/32/bdc39a3c-3104-4c23-8ac0-9f455dda691a |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Tunnel route | ||
resource "cloudflare_tunnel_route" "example" { | ||
account_id = "c4a7362d577a6c3019a474fd6f485821" | ||
tunnel_id = "f70ff985-a4ef-4643-bbbc-4a0ed4fc8415" | ||
network = "192.0.2.24/32" | ||
comment = "New tunnel route for documentation" | ||
virtual_network_id = "bdc39a3c-3104-4c23-8ac0-9f455dda691a" | ||
} | ||
|
||
# Tunnel with tunnel route | ||
resource "cloudflare_argo_tunnel" "tunnel" { | ||
account_id = "c4a7362d577a6c3019a474fd6f485821" | ||
name = "my_tunnel" | ||
secret = "AQIDBAUGBwgBAgMEBQYHCAECAwQFBgcIAQIDBAUGBwg=" | ||
} | ||
|
||
resource "cloudflare_tunnel_route" "example" { | ||
account_id = "c4a7362d577a6c3019a474fd6f485821" | ||
tunnel_id = cloudflare_argo_tunnel.tunnel.id | ||
network = "192.0.2.24/32" | ||
comment = "New tunnel route for documentation" | ||
virtual_network_id = "bdc39a3c-3104-4c23-8ac0-9f455dda691a" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this seems unnecessarily complex; let's just force it to include the
virtual_network_id
for explicitness.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As a
cloudflared
user I know that vnet is totally optional param there.Making it required during import will create additional headache for developers that are always working inside of the "default" vnet since it's not easy at all to get GUID of the default vnet (you cannot do it through UI. Only by using API or
cloudflared
).But anyway for me it does not make any difference. So let's make it required.