Skip to content

ServiceIntegration

Source: src/AWS/DevOpsGuru/ServiceIntegration.ts

The DevOps Guru service integration — the account/region singleton that controls how DevOps Guru integrates with other AWS services: creating a Systems Manager OpsItem for each insight, analyzing CloudWatch log groups for anomalies, and encrypting DevOps Guru data with a customer-managed KMS key.

An account has exactly one integration configuration, so this resource is a capture-and-restore singleton: adopting a non-default configuration that Alchemy did not create requires --adopt. Destroying the resource restores the account defaults (everything disabled, AWS-owned key).

Enable Log Anomaly Detection

const integration = yield* DevOpsGuru.ServiceIntegration("Integration", {
logsAnomalyDetection: true,
});

File an OpsItem for Every Insight

const integration = yield* DevOpsGuru.ServiceIntegration("Integration", {
opsCenter: true,
logsAnomalyDetection: true,
});

Encrypt with a Customer-Managed Key

const integration = yield* DevOpsGuru.ServiceIntegration("Integration", {
kmsKeyId: key.keyId,
});