Skip to content

Commit ca44488

Browse files
author
iru
authored
doc: use case org-k8s-threat-compliance (#116)
1 parent f4a0bea commit ca44488

File tree

17 files changed

+299
-25
lines changed

17 files changed

+299
-25
lines changed

.pre-commit-config.yaml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,12 @@ repos:
77
pass_filenames: false
88
language: system
99
entry: bash -c "find . \( -iname ".terraform*" ! -iname ".terraform-docs*" ! -path "*/test/*" \) -print0 | xargs -0 rm -r; true"
10-
10+
- repo: https://github.com/pre-commit/pre-commit-hooks
11+
rev: v4.0.1
12+
hooks:
13+
- id: check-merge-conflict
14+
- id: end-of-file-fixer
15+
- id: trailing-whitespace
1116
- repo: local
1217
# https://github.com/antonbabenko/pre-commit-terraform/#terraform_validate
1318
# Adding this patch to fix organizational multi-provider terraform validate error
@@ -45,9 +50,3 @@ repos:
4550
- '--args=--only=terraform_required_providers'
4651
- '--args=--only=terraform_standard_module_structure'
4752
- '--args=--only=terraform_workspace_remote'
48-
- repo: https://github.com/pre-commit/pre-commit-hooks
49-
rev: v4.0.1
50-
hooks:
51-
- id: check-merge-conflict
52-
- id: end-of-file-fixer
53-
- id: trailing-whitespace

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,12 @@ Your user **must** have following **roles** in your GCP credentials
3131
### Use a Service Account
3232

3333
Instead of using a user, you can also deploy the module using a Service Account (SA). In order to create a SA for the organization, you need to go
34-
to one of your organization projects and create a SA.
34+
to one of your organization projects and create a SA.
3535
This SA must have been granted with _Organization Admin_ role. Additionally, you should allow your user to be able to use this SA.
3636

37-
| SA role | SA user permissions |
37+
| SA role | SA user permissions |
3838
|--------------|-----------|
39-
| ![Service Account Role](https://raw.githubusercontent.com/sysdiglabs/terraform-google-secure-for-cloud/master/resources/sa-role.jpeg) | ![Service Accouynt User](https://raw.githubusercontent.com/sysdiglabs/terraform-google-secure-for-cloud/master/resources/sa-user.jpeg) |
39+
| ![Service Account Role](https://raw.githubusercontent.com/sysdiglabs/terraform-google-secure-for-cloud/master/resources/sa-role.jpeg) | ![Service Account User](https://raw.githubusercontent.com/sysdiglabs/terraform-google-secure-for-cloud/master/resources/sa-user.jpeg) |
4040

4141
### APIs
4242
Besides, the following GCP **APIs must be enabled** to deploy resources correctly for:

examples/organization/.generate-providers.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#!/usr/bin/env bash
2+
go install github.com/hashicorp/terraform-config-inspect@latest
23
terraform-config-inspect --json ./examples/organization | jq -r '
34
[.required_providers[].aliases]
45
| flatten

examples/organization/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ For quick testing, use this snippet on your terraform files and provide followin
4848
- `ORG_DOMAIN` GCP organization identification
4949
- `PROJECT_ID` GCP project where workload will be deployed
5050
- `REGION_ID` for the workload to be deployed
51-
51+
5252

5353
```terraform
5454
terraform {
@@ -87,7 +87,7 @@ module "secure-for-cloud_example_organization" {
8787
google-beta.multiproject = google-beta.multiproject
8888
}
8989
90-
source = "sysdiglabs/secure-for-cloud/google//examples/organization"
90+
source = "sysdiglabs/secure-for-cloud/google//examples/organization"
9191
organization_domain = "<ORG_DOMAIN>"
9292
}
9393
```
@@ -106,8 +106,8 @@ module "secure-for-cloud_example_organization" {
106106

107107
| Name | Version |
108108
|------|---------|
109-
| <a name="provider_google"></a> [google](#provider\_google) | 4.24.0 |
110-
| <a name="provider_sysdig"></a> [sysdig](#provider\_sysdig) | 0.5.37 |
109+
| <a name="provider_google"></a> [google](#provider\_google) | 4.30.0 |
110+
| <a name="provider_sysdig"></a> [sysdig](#provider\_sysdig) | 0.5.39 |
111111

112112
## Modules
113113

examples/single-project-k8s/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,9 +81,9 @@ See [inputs summary](#inputs) or module module [`variables.tf`](./variables.tf)
8181

8282
| Name | Version |
8383
|------|---------|
84-
| <a name="provider_google"></a> [google](#provider\_google) | 4.24.0 |
85-
| <a name="provider_helm"></a> [helm](#provider\_helm) | 2.5.1 |
86-
| <a name="provider_sysdig"></a> [sysdig](#provider\_sysdig) | 0.5.37 |
84+
| <a name="provider_google"></a> [google](#provider\_google) | 4.30.0 |
85+
| <a name="provider_helm"></a> [helm](#provider\_helm) | 2.6.0 |
86+
| <a name="provider_sysdig"></a> [sysdig](#provider\_sysdig) | 0.5.39 |
8787

8888
## Modules
8989

examples/single-project/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,8 @@ module "secure-for-cloud_example_single-project" {
8282

8383
| Name | Version |
8484
|------|---------|
85-
| <a name="provider_google"></a> [google](#provider\_google) | 4.24.0 |
86-
| <a name="provider_sysdig"></a> [sysdig](#provider\_sysdig) | 0.5.37 |
85+
| <a name="provider_google"></a> [google](#provider\_google) | 4.30.0 |
86+
| <a name="provider_sysdig"></a> [sysdig](#provider\_sysdig) | 0.5.39 |
8787

8888
## Modules
8989

examples/trigger-events/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ module "secure-for-cloud_trigger_events" {
3838

3939
| Name | Version |
4040
|------|---------|
41-
| <a name="provider_google"></a> [google](#provider\_google) | 4.24.0 |
41+
| <a name="provider_google"></a> [google](#provider\_google) | 4.30.0 |
4242

4343
## Modules
4444

modules/infrastructure/organization_sink/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
| Name | Version |
1414
|------|---------|
15-
| <a name="provider_google"></a> [google](#provider\_google) | 4.24.0 |
15+
| <a name="provider_google"></a> [google](#provider\_google) | 4.30.0 |
1616

1717
## Modules
1818

modules/infrastructure/project_sink/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
| Name | Version |
1414
|------|---------|
15-
| <a name="provider_google"></a> [google](#provider\_google) | 4.24.0 |
15+
| <a name="provider_google"></a> [google](#provider\_google) | 4.30.0 |
1616

1717
## Modules
1818

modules/infrastructure/pubsub_subscription/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ already exists in the project. It will create the topic if it doesn't exist.
1515

1616
| Name | Version |
1717
|------|---------|
18-
| <a name="provider_google"></a> [google](#provider\_google) | 4.24.0 |
18+
| <a name="provider_google"></a> [google](#provider\_google) | 4.30.0 |
1919

2020
## Modules
2121

0 commit comments

Comments
 (0)