@@ -91,46 +91,46 @@ resource "sysdig_secure_cloud_auth_account" "gcp_config_posture" {
91
91
provider_type = "PROVIDER_GCP"
92
92
enabled = true
93
93
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
+ }
102
102
}
103
103
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({
107
107
gcp = {
108
108
key = "%s"
109
109
}
110
110
})
111
111
}
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"
128
130
}
129
- email = "email_value"
130
131
}
131
- }
132
- })
133
- }
132
+ })
133
+ }
134
134
}
135
135
` , accountID , getEncodedServiceAccountKey ("gcp-cspm-test" , accountID ))
136
136
}
0 commit comments