Skip to content

Commit 5ff62de

Browse files
Resolved merge conflicts
2 parents 7c9f29f + 4d9d1d3 commit 5ff62de

File tree

2 files changed

+68
-42
lines changed

2 files changed

+68
-42
lines changed

sysdig/resource_sysdig_secure_cloud_auth_account_test.go

+31-31
Original file line numberDiff line numberDiff line change
@@ -91,46 +91,46 @@ resource "sysdig_secure_cloud_auth_account" "gcp_config_posture" {
9191
provider_type = "PROVIDER_GCP"
9292
enabled = true
9393
feature {
94-
secure_config_posture {
95-
enabled = true
96-
components = ["COMPONENT_SERVICE_PRINCIPAL/secure-posture"]
97-
}
98-
secure_identity_entitlement {
99-
enabled = true
100-
components = ["COMPONENT_WEBHOOK_DATASOURCE/secure-runtime"]
101-
}
94+
secure_config_posture {
95+
enabled = true
96+
components = ["COMPONENT_SERVICE_PRINCIPAL/secure-posture"]
97+
}
98+
secure_identity_entitlement {
99+
enabled = true
100+
components = ["COMPONENT_WEBHOOK_DATASOURCE/secure-runtime"]
101+
}
102102
}
103103
component {
104-
type = "COMPONENT_SERVICE_PRINCIPAL"
105-
instance = "secure-posture"
106-
service_principal_metadata = jsonencode({
104+
type = "COMPONENT_SERVICE_PRINCIPAL"
105+
instance = "secure-posture"
106+
service_principal_metadata = jsonencode({
107107
gcp = {
108108
key = "%s"
109109
}
110110
})
111111
}
112-
component {
113-
type = "COMPONENT_WEBHOOK_DATASOURCE"
114-
instance = "secure-runtime"
115-
webhook_datasource_metadata = jsonencode({
116-
gcp = {
117-
webhook_datasource = {
118-
pubsub_topic_name = "pubsub_topic_name_value"
119-
sink_name = "sink_name_value"
120-
push_subscription_name = "push_subscription_name_value"
121-
push_endpoint = "push_endpoint_value"
122-
}
123-
service_principal = {
124-
workload_identity_federation = {
125-
pool_id = "pool_id_value"
126-
pool_provider_id = "pool_provider_id_value"
127-
project_number = "123456789011"
112+
component {
113+
type = "COMPONENT_WEBHOOK_DATASOURCE"
114+
instance = "secure-runtime"
115+
webhook_datasource_metadata = jsonencode({
116+
gcp = {
117+
webhook_datasource = {
118+
pubsub_topic_name = "pubsub_topic_name_value"
119+
sink_name = "sink_name_value"
120+
push_subscription_name = "push_subscription_name_value"
121+
push_endpoint = "push_endpoint_value"
122+
}
123+
service_principal = {
124+
workload_identity_federation = {
125+
pool_id = "pool_id_value"
126+
pool_provider_id = "pool_provider_id_value"
127+
project_number = "123456789011"
128+
}
129+
email = "email_value"
128130
}
129-
email = "email_value"
130131
}
131-
}
132-
})
133-
}
132+
})
133+
}
134134
}
135135
`, accountID, getEncodedServiceAccountKey("gcp-cspm-test", accountID))
136136
}

sysdig/resource_sysdig_secure_organization_test.go

+37-11
Original file line numberDiff line numberDiff line change
@@ -69,29 +69,55 @@ resource "sysdig_secure_cloud_auth_account" "sample" {
6969
provider_type = "PROVIDER_GCP"
7070
enabled = "true"
7171
feature {
72-
secure_config_posture {
73-
enabled = "true"
74-
components = ["COMPONENT_SERVICE_PRINCIPAL/secure-posture"]
75-
}
72+
secure_config_posture {
73+
enabled = true
74+
components = ["COMPONENT_SERVICE_PRINCIPAL/secure-posture"]
75+
}
76+
secure_identity_entitlement {
77+
enabled = true
78+
components = ["COMPONENT_WEBHOOK_DATASOURCE/secure-runtime"]
79+
}
7680
}
7781
component {
78-
type = "COMPONENT_SERVICE_PRINCIPAL"
79-
instance = "secure-posture"
80-
service_principal_metadata = jsonencode({
82+
type = "COMPONENT_SERVICE_PRINCIPAL"
83+
instance = "secure-posture"
84+
service_principal_metadata = jsonencode({
8185
gcp = {
8286
key = "%s"
8387
}
8488
})
8589
}
86-
component {
87-
type = "COMPONENT_SERVICE_PRINCIPAL"
88-
instance = "secure-onboarding"
89-
service_principal_metadata = jsonencode({
90+
component {
91+
type = "COMPONENT_SERVICE_PRINCIPAL"
92+
instance = "secure-onboarding"
93+
service_principal_metadata = jsonencode({
9094
gcp = {
9195
key = "%s"
9296
}
9397
})
9498
}
99+
component {
100+
type = "COMPONENT_WEBHOOK_DATASOURCE"
101+
instance = "secure-runtime"
102+
webhook_datasource_metadata = jsonencode({
103+
gcp = {
104+
webhook_datasource = {
105+
pubsub_topic_name = "pubsub_topic_name_value"
106+
sink_name = "sink_name_value"
107+
push_subscription_name = "push_subscription_name_value"
108+
push_endpoint = "push_endpoint_value"
109+
}
110+
service_principal = {
111+
workload_identity_federation = {
112+
pool_id = "pool_id_value"
113+
pool_provider_id = "pool_provider_id_value"
114+
project_number = "123456789011"
115+
}
116+
email = "email_value"
117+
}
118+
}
119+
})
120+
}
95121
}
96122
resource "sysdig_secure_organization" "sample-org" {
97123
management_account_id = sysdig_secure_cloud_auth_account.sample.id

0 commit comments

Comments
 (0)