Skip to content

Commit ad3a707

Browse files
committed
add examples
1 parent cc8211f commit ad3a707

File tree

2 files changed

+64
-0
lines changed

2 files changed

+64
-0
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
data "aquasec_application_scope_saas" "saas" {
2+
name = "Global"
3+
}
4+
5+
output "scopes" {
6+
value = data.aquasec_application_scope_saas.saas
7+
}
8+
9+
output "name" {
10+
value = data.aquasec_application_scope_saas.saas.name
11+
}
12+
13+
output "categories" {
14+
value = data.aquasec_application_scope_saas.saas.categories
15+
}
16+
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
resource "aquasec_application_scope_saas" "terraformiap" {
2+
description = "aquasec application scope saas"
3+
name = "aquasec_application_scope_saas"
4+
// Categories is a nested block of artifacts, workloads and infrastructure
5+
categories {
6+
// Artifacts is a nested block of Image, Function, CF
7+
artifacts {
8+
// Every object requires expression(logical combinations of variables v1, v2, v3...) and list of variables consists of attribute(pre-defined) and value
9+
image {
10+
expression = "v1 && v2"
11+
variables {
12+
attribute = "aqua.registry"
13+
value = "test-registry"
14+
}
15+
variables {
16+
attribute = "image.repo"
17+
value = "nginx"
18+
}
19+
}
20+
}
21+
// Workloads is a nested block of Kubernetes, OS, CF
22+
workloads {
23+
// Every object requires expression(logical combinations of variables v1, v2, v3...) and list of variables consists of attribute(pre-defined) and value
24+
kubernetes {
25+
expression = "v1 && v2"
26+
variables {
27+
attribute = "kubernetes.cluster"
28+
value = "aqua"
29+
}
30+
variables {
31+
attribute = "kubernetes.namespace"
32+
value = "aqua"
33+
}
34+
}
35+
}
36+
// Infrastructure is a nested block of Kubernetes, OS
37+
infrastructure {
38+
// Every object requires expression and list of variables consists of attribute(pre-defined) and value
39+
kubernetes {
40+
expression = "v1"
41+
variables {
42+
attribute = "kubernetes.cluster"
43+
value = "aqua"
44+
}
45+
}
46+
}
47+
}
48+
}

0 commit comments

Comments
 (0)