File tree Expand file tree Collapse file tree 4 files changed +31
-24
lines changed
check-terraform-instances Expand file tree Collapse file tree 4 files changed +31
-24
lines changed Original file line number Diff line number Diff line change @@ -119,7 +119,7 @@ jobs:
119119 uses : stackql/stackql-assert@v1.3.2
120120 with :
121121 test_query_file_path : ' ./stackql/scripts/check-terraform-instances/check-terraform-instances.iql'
122- expected_results_str : ' [{"name":"terraform-test-1","name":"terraform-test-2"}] '
122+ expected_rows : 3
123123
124124 - name : run a compliance check using stackql-assert - should fail
125125 uses : stackql/stackql-assert@v1.3.2
Original file line number Diff line number Diff line change 11<<<jsonnet
22{
33 project: 'stackql-demo-2',
4- zone: 'australia-southeast1-c ',
4+ zone: 'australia-southeast1-b ',
55 nameLike: 'terraform-',
66}
77>>>
Original file line number Diff line number Diff line change 1+ SELECT 1
Original file line number Diff line number Diff line change 1- provider "google" {
2- credentials = var. google_credentials
3- project = " stackql-demo-2"
4- }
5-
6- resource "google_compute_instance" "instance" {
7- count = var. instance_count
8- name = " terraform-test-${ count . index + 1 } "
9- machine_type = var. machine_type
10- zone = var. zone
11-
12- boot_disk {
13- initialize_params {
14- image = var. image
15- }
16- }
17-
18- network_interface {
19- network = var. network
20- access_config {
21- }
22- }
1+ provider "google" {
2+ credentials = var. google_credentials
3+ project = " stackql-demo-2"
4+ }
5+
6+ resource "google_compute_instance" "instance" {
7+ count = var. instance_count
8+ name = " terraform-test-${ count . index + 1 } "
9+ machine_type = var. machine_type
10+ zone = var. zone
11+
12+ boot_disk {
13+ initialize_params {
14+ image = var. image
15+ }
16+ }
17+
18+ network_interface {
19+ network = var. network
20+ access_config {
21+ }
22+ }
23+ }
24+
25+ resource "google_storage_bucket" "stackql-demo-public-access-not-enforced" {
26+ name = " stackql-demo-public-access-not-enforced"
27+ location = " US"
28+ force_destroy = true
2329}
You can’t perform that action at this time.
0 commit comments