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 WAF logs to the log drains resource #55

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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 docs/resources/log_drain.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ resource "netlify_log_drain" "blog" {

- `destination` (String) One of datadog, newrelic, logflare, s3, splunkcloud, http, axiom, or azure
- `exclude_pii` (Boolean)
- `log_types` (Set of String) One or more of user_traffic, functions, edge_functions, and deploys
- `log_types` (Set of String) One or more of user_traffic, functions, edge_functions, waf, and deploys
- `service_config` (Attributes) (see [below for nested schema](#nestedatt--service_config))
- `site_id` (String)

Expand Down
2 changes: 0 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -310,8 +310,6 @@ golang.org/x/net v0.0.0-20220722155237-a158d28d115b/go.mod h1:XRhObCWvk6IyKnWLug
golang.org/x/net v0.2.0/go.mod h1:KqCZLdyyvdV855qA2rE3GC2aiw5xGR5TEjj8smXukLY=
golang.org/x/net v0.25.0 h1:d/OCCoBEUq33pjydKrGQhw7IlUPI2Oylr+8qLx49kac=
golang.org/x/net v0.25.0/go.mod h1:JkAGAh7GEvH74S6FOH42FLoXpXbE/aqXSrIQjXgsiwM=
golang.org/x/oauth2 v0.22.0 h1:BzDx2FehcG7jJwgWLELCdmLuxk2i+x9UDpSiss2u0ZA=
golang.org/x/oauth2 v0.22.0/go.mod h1:XYTD2NtWslqkgxebSiOHnXEap4TF09sJSc7H1sXbhtI=
golang.org/x/oauth2 v0.23.0 h1:PbgcYx2W7i4LvjJWEbf0ngHV6qJYr86PkAV3bXdLEbs=
golang.org/x/oauth2 v0.23.0/go.mod h1:XYTD2NtWslqkgxebSiOHnXEap4TF09sJSc7H1sXbhtI=
golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
Expand Down
4 changes: 2 additions & 2 deletions internal/provider/log_drain_resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -147,10 +147,10 @@ func (r *logDrainResource) Schema(_ context.Context, _ resource.SchemaRequest, r
"log_types": schema.SetAttribute{
Required: true,
ElementType: types.StringType,
Description: "One or more of user_traffic, functions, edge_functions, and deploys",
Description: "One or more of user_traffic, functions, edge_functions, waf, and deploys",
Validators: []validator.Set{
setvalidator.ValueStringsAre(
stringvalidator.OneOf("user_traffic", "functions", "edge_functions", "deploys"),
stringvalidator.OneOf("user_traffic", "functions", "edge_functions", "waf", "deploys"),
),
},
},
Expand Down