Skip to content

Commit

Permalink
feat: Added new LSS log_type attribute (#238)
Browse files Browse the repository at this point in the history
  • Loading branch information
willguibr authored Jan 25, 2023
1 parent 2180413 commit ef5377d
Show file tree
Hide file tree
Showing 8 changed files with 59 additions and 7 deletions.
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
# Changelog

# 2.5.5 (January, 24 2023)

### Notes

- Release date: **(January, 24 2023)**
- Supported Terraform version: **v1.x**

### Enhacements

- [PR #238](https://github.com/zscaler/terraform-provider-zpa/pull/238) - Added new log_type (``zpn_pbroker_comprehensive_stats``) attribute to ``zpa_lss_config_log_type_formats`` and ``zpa_lss_config_controller``.

# 2.5.4 (January, 16 2023)

### Notes
Expand Down
6 changes: 3 additions & 3 deletions GNUmakefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@ build: fmtcheck
build13: GOOS=$(shell go env GOOS)
build13: GOARCH=$(shell go env GOARCH)
ifeq ($(OS),Windows_NT) # is Windows_NT on XP, 2000, 7, Vista, 10...
build13: DESTINATION=$(APPDATA)/terraform.d/plugins/$(ZPA_PROVIDER_NAMESPACE)/2.5.4/$(GOOS)_$(GOARCH)
build13: DESTINATION=$(APPDATA)/terraform.d/plugins/$(ZPA_PROVIDER_NAMESPACE)/2.5.5/$(GOOS)_$(GOARCH)
else
build13: DESTINATION=$(HOME)/.terraform.d/plugins/$(ZPA_PROVIDER_NAMESPACE)/2.5.4/$(GOOS)_$(GOARCH)
build13: DESTINATION=$(HOME)/.terraform.d/plugins/$(ZPA_PROVIDER_NAMESPACE)/2.5.5/$(GOOS)_$(GOARCH)
endif
build13: fmtcheck
go mod tidy && go mod vendor
@echo "==> Installing plugin to $(DESTINATION)"
@mkdir -p $(DESTINATION)
go build -o $(DESTINATION)/terraform-provider-zpa_v2.5.4
go build -o $(DESTINATION)/terraform-provider-zpa_v2.5.5

test: fmtcheck
go test $(TEST) || exit 1
Expand Down
7 changes: 6 additions & 1 deletion docs/data-sources/zpa_lss_config_log_type_formats.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,11 @@ data "zpa_lss_config_log_type_formats" "zpn_ast_comprehensive_stats" {
}
data "zpa_lss_config_log_type_formats" "zpn_waf_http_exchanges_log" {
log_type = "zpn_waf_http_exchanges_log"
log_type = "zpn_waf_http_exchanges_log"
}
data "zpa_lss_config_log_type_formats" "zpn_pbroker_comprehensive_stats" {
log_type = "zpn_pbroker_comprehensive_stats"
}
```

Expand All @@ -59,3 +63,4 @@ The following arguments are supported:
* `zpn_sys_auth_log`
* `zpn_ast_comprehensive_stats`
* `zpn_waf_http_exchanges_log`
* `zpn_pbroker_comprehensive_stats`
13 changes: 12 additions & 1 deletion docs/guides/release-notes.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,21 @@ Track all ZPA Terraform provider's releases. New resources, features, and bug fi

---

``Last updated: v2.5.4``
``Last updated: v2.5.5``

---

# 2.5.5 (January, 24 2023)

### Notes

- Release date: **(January, 24 2023)**
- Supported Terraform version: **v1.x**

### Enhacements

- [PR #238](https://github.com/zscaler/terraform-provider-zpa/pull/238) - Added new log_type (``zpn_pbroker_comprehensive_stats``) attribute to ``zpa_lss_config_log_type_formats`` and ``zpa_lss_config_controller``.

### Notes

- Release date: **(January, 16 2023)**
Expand Down
9 changes: 9 additions & 0 deletions docs/resources/zpa_lss_config_controller.md
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,15 @@ In addition to all arguments above, the following attributes are exported:
* `filter` - (Optional)
* `use_tls` - (Optional)
* `source_log_type` - (Required)
* `zpn_trans_log`
* `zpn_auth_log`
* `zpn_ast_auth_log`
* `zpn_http_trans_log`
* `zpn_audit_log`
* `zpn_sys_auth_log`
* `zpn_ast_comprehensive_stats`
* `zpn_waf_http_exchanges_log`
* `zpn_pbroker_comprehensive_stats`
* `connector_groups` - (Required)
- `id` - (Required) - App Connector Group ID(s) where logs will be forwarded to.

Expand Down
1 change: 1 addition & 0 deletions zpa/data_source_zpa_lss_config_log_types_formats.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ func dataSourceLSSLogTypeFormats() *schema.Resource {
"zpn_ast_comprehensive_stats",
"zpn_sys_auth_log",
"zpn_waf_http_exchanges_log",
"zpn_pbroker_comprehensive_stats",
}, false),
},
"tsv": {
Expand Down
14 changes: 14 additions & 0 deletions zpa/data_source_zpa_lss_config_log_types_formats_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,22 +37,36 @@ var testAccCheckDataSourceLSSLogTypeFormats_basic = `
data "zpa_lss_config_log_type_formats" "zpn_trans_log" {
log_type = "zpn_trans_log"
}
data "zpa_lss_config_log_type_formats" "zpn_auth_log" {
log_type = "zpn_auth_log"
}
data "zpa_lss_config_log_type_formats" "zpn_ast_auth_log" {
log_type = "zpn_ast_auth_log"
}
data "zpa_lss_config_log_type_formats" "zpn_http_trans_log" {
log_type = "zpn_http_trans_log"
}
data "zpa_lss_config_log_type_formats" "zpn_audit_log" {
log_type = "zpn_audit_log"
}
data "zpa_lss_config_log_type_formats" "zpn_ast_comprehensive_stats" {
log_type = "zpn_ast_comprehensive_stats"
}
data "zpa_lss_config_log_type_formats" "zpn_sys_auth_log" {
log_type = "zpn_sys_auth_log"
}
data "zpa_lss_config_log_type_formats" "zpn_waf_http_exchanges_log" {
log_type = "zpn_waf_http_exchanges_log"
}
data "zpa_lss_config_log_type_formats" "zpn_pbroker_comprehensive_stats" {
log_type = "zpn_pbroker_comprehensive_stats"
}
`
5 changes: 3 additions & 2 deletions zpa/resource_zpa_lss_config_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -200,9 +200,10 @@ func resourceLSSConfigController() *schema.Resource {
"zpn_ast_auth_log",
"zpn_http_trans_log",
"zpn_audit_log",
"zpn_sys_auth_log",
"zpn_http_insp",
"zpn_ast_comprehensive_stats",
"zpn_sys_auth_log",
"zpn_waf_http_exchanges_log",
"zpn_pbroker_comprehensive_stats",
}, false),
},
"use_tls": {
Expand Down

0 comments on commit ef5377d

Please sign in to comment.