Commit 7b5f553
[ECI-1615] Add IAM for the Datadog group to manage the events forwarding pipeline (#125)
Grant the Datadog user group and the runtime dynamic groups the permissions
needed to stand up the full event-forwarding pipeline out-of-band when the
customer opts in via the Datadog UI:
- oci_identity_tag_namespace.datadog_managed and oci_identity_tag.marker
(DatadogManaged.marker) — applied to the events rule so the IAM grant
below can scope to only Datadog-owned rules.
- dd_auth (Datadog group manages the pipeline):
* manage cloudevents-rules in tenancy with where-any on EVENTRULE_CREATE
plus the DatadogManaged.marker target tag (CREATE unconditional,
UPDATE/DELETE/READ scoped to tagged rules).
* manage streams in compartment with the same where-any shape on
STREAM_CREATE plus the DatadogManaged.marker target tag.
- dynamic_group (runtime data path):
* service_connector use stream-pull on streams with DatadogManaged.marker —
the connector hub consumes from the events stream.
* any-user use stream-push where principal.type = 'eventrule' AND target
carries DatadogManaged.marker — OCI Events Service publishes only to
Datadog-managed streams.
The pipeline resources themselves (events function, events rule, stream) are
not created by this stack — they are managed at runtime. This PR only adds
the IAM so that flow works.
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent ba68aa3 commit 7b5f553
2 files changed
Lines changed: 42 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
180 | 180 | | |
181 | 181 | | |
182 | 182 | | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
183 | 197 | | |
184 | | - | |
| 198 | + | |
185 | 199 | | |
186 | 200 | | |
187 | 201 | | |
| |||
194 | 208 | | |
195 | 209 | | |
196 | 210 | | |
197 | | - | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
198 | 214 | | |
199 | 215 | | |
200 | 216 | | |
| |||
229 | 245 | | |
230 | 246 | | |
231 | 247 | | |
232 | | - | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
233 | 251 | | |
234 | 252 | | |
235 | 253 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
184 | 184 | | |
185 | 185 | | |
186 | 186 | | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
187 | 201 | | |
188 | | - | |
| 202 | + | |
189 | 203 | | |
190 | 204 | | |
191 | 205 | | |
| |||
198 | 212 | | |
199 | 213 | | |
200 | 214 | | |
201 | | - | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
202 | 218 | | |
203 | 219 | | |
204 | 220 | | |
| |||
233 | 249 | | |
234 | 250 | | |
235 | 251 | | |
236 | | - | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
237 | 255 | | |
238 | 256 | | |
239 | 257 | | |
| |||
0 commit comments