Skip to content

Commit fb378bd

Browse files
committed
infra2
1 parent 4006d4e commit fb378bd

File tree

2 files changed

+26
-7
lines changed

2 files changed

+26
-7
lines changed

README.md

Lines changed: 25 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,37 @@
1-
# Infra1
1+
# Infra2
22

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
44
55
## Test policy locally
66

77
```bash
88
$ docker run --rm -ti -v $(pwd):/apps ghcr.io/example-policy-org/policy-checker
99

1010
Checking policy version...
11-
Policy version: 1.0.0
11+
Policy version: 2.0.1
1212
Fetching Policy...
1313

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...
1615

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
1837
```

main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
resource "aws_s3_bucket" "b" {
22
bucket = "my-tf-test-bucket"
33
tags = {
4-
mycompany.com.department = "finance"
4+
mycompany.com.department = "hr"
55
}
66
}

0 commit comments

Comments
 (0)