Skip to content

Commit 5dfb88d

Browse files
committed
v0.2.0
1 parent 346085b commit 5dfb88d

File tree

6 files changed

+102
-1
lines changed

6 files changed

+102
-1
lines changed

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,15 @@
11
# Changelog
22

33
## Unreleased
4+
## Version 0.2.0 - 2021-12-13
5+
### Added
6+
- Admission policy resource type ([#33](https://github.com/PaloAltoNetworks/terraform-provider-prismacloudcompute/pull/33), @hi-artem).
7+
- Custom runtime rule resource type ([#35](https://github.com/PaloAltoNetworks/terraform-provider-prismacloudcompute/pull/35), @hi-artem).
8+
9+
### Fixed
10+
- You can now specify config items directly instead of using config file ([#31](https://github.com/PaloAltoNetworks/terraform-provider-prismacloudcompute/pull/31), @hi-artem).
11+
12+
## Version 0.1.0 - 2021-11-08
413
### Added
514
- User, group, role, and credential resource types.
615

docs/index.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,25 @@ description: |-
1313
## Example Usage
1414

1515
```terraform
16+
terraform {
17+
required_providers {
18+
prismacloudcompute = {
19+
source = "PaloAltoNetworks/prismacloudcompute"
20+
version = "0.1.0"
21+
}
22+
}
23+
}
24+
1625
provider "prismacloudcompute" {
26+
# Configure provider with file
27+
#
1728
config_file = "creds.json"
29+
30+
# Alternatively, you can use variables
31+
#
32+
# console_url = "https://foo.bar.com"
33+
# username = "myUsername"
34+
# password = "myPassword"
1835
}
1936
```
2037

docs/resources/admission_policy.md

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
---
2+
# generated by https://github.com/hashicorp/terraform-plugin-docs
3+
page_title: "prismacloudcompute_admission_policy Resource - terraform-provider-prismacloudcompute"
4+
subcategory: ""
5+
description: |-
6+
7+
---
8+
9+
# prismacloudcompute_admission_policy (Resource)
10+
11+
12+
13+
14+
15+
<!-- schema generated by tfplugindocs -->
16+
## Schema
17+
18+
### Optional
19+
20+
- **rule** (Block List) Rules that make up the policy. (see [below for nested schema](#nestedblock--rule))
21+
22+
### Read-Only
23+
24+
- **id** (String) The ID of the policy.
25+
26+
<a id="nestedblock--rule"></a>
27+
### Nested Schema for `rule`
28+
29+
Optional:
30+
31+
- **description** (String) Free-form text field.
32+
- **disabled** (Boolean) Whether or not to disable the rule.
33+
- **effect** (String) The effect to be used. Can be set to 'allow', 'block' or 'alert'.
34+
- **name** (String) Unique name of the rule.
35+
- **script** (String) Policy script in Rego syntax.
36+
37+

docs/resources/custom_rule.md

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
---
2+
# generated by https://github.com/hashicorp/terraform-plugin-docs
3+
page_title: "prismacloudcompute_custom_rule Resource - terraform-provider-prismacloudcompute"
4+
subcategory: ""
5+
description: |-
6+
7+
---
8+
9+
# prismacloudcompute_custom_rule (Resource)
10+
11+
12+
13+
14+
15+
<!-- schema generated by tfplugindocs -->
16+
## Schema
17+
18+
### Required
19+
20+
- **name** (String) Unique custom rule name.
21+
- **type** (String) Custom rule type. Can be set to 'processes', 'filesystem', 'network-outgoing', 'kubernetes-audit', 'waas-request', or 'waas-response'.
22+
23+
### Optional
24+
25+
- **description** (String) Free-form text description of the custom rule.
26+
- **message** (String) Message to display for a custom rule event.
27+
- **script** (String) Custom rule expression.
28+
29+
### Read-Only
30+
31+
- **id** (String) ID of the custom rule.
32+
- **prisma_id** (Number) Prisma Cloud Compute ID of the custom rule.
33+
34+

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ go 1.17
44

55
require (
66
github.com/hashicorp/terraform-plugin-sdk/v2 v2.7.1
7-
github.com/paloaltonetworks/prisma-cloud-compute-go v0.2.0
7+
github.com/paloaltonetworks/prisma-cloud-compute-go v0.3.0
88
)
99

1010
require (

go.sum

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,10 @@ github.com/oklog/run v1.0.0 h1:Ru7dDtJNOyC66gQ5dQmaCa0qIsAUFY3sFpK1Xk8igrw=
267267
github.com/oklog/run v1.0.0/go.mod h1:dlhp/R75TPv97u0XWUtDeV/lRKWPKSdTuV0TZvrmrQA=
268268
github.com/paloaltonetworks/prisma-cloud-compute-go v0.2.0 h1:ZA3JHiboEbRzzV8aQ4ZCP0KL3b8q8n9OEmyGWl2m3tk=
269269
github.com/paloaltonetworks/prisma-cloud-compute-go v0.2.0/go.mod h1:xwe8aQ+fjs4vVCaeP78KCthSU74QM5suaV9k2UUyAow=
270+
github.com/paloaltonetworks/prisma-cloud-compute-go v0.2.1-0.20211213170512-847915ec00ba h1:rarplsMecOpfnRJZ8H802VDUJVE6W3Z99NJy82I34jM=
271+
github.com/paloaltonetworks/prisma-cloud-compute-go v0.2.1-0.20211213170512-847915ec00ba/go.mod h1:xwe8aQ+fjs4vVCaeP78KCthSU74QM5suaV9k2UUyAow=
272+
github.com/paloaltonetworks/prisma-cloud-compute-go v0.3.0 h1:O/HomclXcUnt/YXct+Ktd3t9dVEn9tQfK13qZpYDlac=
273+
github.com/paloaltonetworks/prisma-cloud-compute-go v0.3.0/go.mod h1:xwe8aQ+fjs4vVCaeP78KCthSU74QM5suaV9k2UUyAow=
270274
github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
271275
github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
272276
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=

0 commit comments

Comments
 (0)