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

Spectrum origin_port is optional #549

Merged
merged 1 commit into from
Dec 4, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cloudflare/resource_cloudflare_spectrum_application.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ func resourceCloudflareSpectrumApplication() *schema.Resource {

"origin_port": {
Type: schema.TypeInt,
Required: true,
Optional: true,
},

"tls": {
Expand Down
6 changes: 4 additions & 2 deletions website/docs/r/spectrum_application.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,10 @@ Provides a Cloudflare Spectrum Application. You can extend the power of Cloudfla
```hcl
# Define a spectrum application proxies ssh traffic
resource "cloudflare_spectrum_application" "ssh_proxy" {
protocol = "tcp/22"
zone_id = var.cloudflare_zone_id
protocol = "tcp/22"
traffic_type = "direct"
dns = {
dns {
type = "CNAME"
name = "ssh.example.com"
}
Expand All @@ -30,6 +31,7 @@ resource "cloudflare_spectrum_application" "ssh_proxy" {

## Argument Reference

* `zone_id` - (Required) The DNS zone ID to add the application to
* `protocol` - (Required) The port configuration at Cloudflare’s edge. e.g. `tcp/22`.
* `dns` - (Required) The name and type of DNS record for the Spectrum application. Fields documented below.
* `origin_direct` - (Optional) A list of destination addresses to the origin. e.g. `tcp://192.0.2.1:22`.
Expand Down