File tree Expand file tree Collapse file tree 2 files changed +26
-7
lines changed Expand file tree Collapse file tree 2 files changed +26
-7
lines changed Original file line number Diff line number Diff line change 1
- # Infra1
1
+ # Infra2
2
2
3
- > This infra is compliant with version [ 1 .0.0 ] ( https://github.com/example-policy-org/policy/releases/tag/1 .0.0 ) of the company policy ** only **
3
+ > This infra is compliant with version [ 2 .0.1 ] ( https://github.com/example-policy-org/policy/releases/tag/2 .0.1 ) of the company policy
4
4
5
5
## Test policy locally
6
6
7
7
``` bash
8
8
$ docker run --rm -ti -v $( pwd) :/apps ghcr.io/example-policy-org/policy-checker
9
9
10
10
Checking policy version...
11
- Policy version: 1 .0.0
11
+ Policy version: 2 .0.1
12
12
Fetching Policy...
13
13
14
- Applying 1 policy to 1 resource...
15
- (Total number of result count may vary as the policy is mutated by Kyverno. To check the mutated policy please try with log level 5)
14
+ Running policy checker...
16
15
17
- Passed checks: 2, Failed checks: 0, Skipped checks: 0
16
+ _ _
17
+ ___| | __ ___ ___| | _______ __
18
+ / __| ' _ \ / _ \/ __| |/ / _ \ \ / /
19
+ | (__| | | | __/ (__| < (_) \ V /
20
+ \___|_| |_|\___|\___|_|\_\___/ \_/
21
+
22
+ By bridgecrew.io | version: 2.0.1034
23
+
24
+ terraform scan results:
25
+
26
+ Passed checks: 3, Failed checks: 0, Skipped checks: 0
27
+
28
+ Check: CUSTOM_AWS_2: "Check that all resources are tagged with the key - department with a known value"
29
+ PASSED for resource: aws_s3_bucket.b
30
+ File: /main.tf:1-6
31
+ Check: : ""
32
+ PASSED for resource: aws_s3_bucket.b
33
+ File: /main.tf:1-6
34
+ Check: CUSTOM_AWS_1: "Check that all resources are tagged with the key - department"
35
+ PASSED for resource: aws_s3_bucket.b
36
+ File: /main.tf:1-6
18
37
```
Original file line number Diff line number Diff line change 1
1
resource "aws_s3_bucket" "b" {
2
2
bucket = " my-tf-test-bucket"
3
3
tags = {
4
- mycompany.com.department = " finance "
4
+ mycompany.com.department = " hr "
5
5
}
6
6
}
You can’t perform that action at this time.
0 commit comments