Terraform resource for managing an AWS DevOps Guru Service Integration.
resource "aws_devopsguru_service_integration" "example" {
kms_server_side_encryption {
opt_in_status = "ENABLED"
type = "AWS_OWNED_KMS_KEY"
}
logs_anomaly_detection {
opt_in_status = "ENABLED"
}
ops_center {
opt_in_status = "ENABLED"
}
}
resource "aws_kms_key" "example" {}
resource "aws_devopsguru_service_integration" "example" {
kms_server_side_encryption {
kms_key_id = aws_kms_key.test.arn
opt_in_status = "ENABLED"
type = "CUSTOMER_MANAGED_KEY"
}
logs_anomaly_detection {
opt_in_status = "DISABLED"
}
ops_center {
opt_in_status = "DISABLED"
}
}
The following arguments are required:
kms_server_side_encryption
- (Required) Information about whether DevOps Guru is configured to encrypt server-side data using KMS. See kms_server_side_encryption
below.logs_anomaly_detection
- (Required) Information about whether DevOps Guru is configured to perform log anomaly detection on Amazon CloudWatch log groups. See logs_anomaly_detection
below.ops_center
- (Required) Information about whether DevOps Guru is configured to create an OpsItem in AWS Systems Manager OpsCenter for each created insight. See ops_center
below.kms_server_side_encryption
Argument Referencekms_key_id
- (Optional) KMS key ID. This value can be a key ID, key ARN, alias name, or alias ARN.opt_in_status
- (Optional) Specifies whether KMS integration is enabled. Valid values are DISABLED
and ENABLED
.type
- (Optional) Type of KMS key used. Valid values are CUSTOMER_MANAGED_KEY
and AWS_OWNED_KMS_KEY
.logs_anomaly_detection
Argument Referenceopt_in_status
- (Optional) Specifies if DevOps Guru is configured to perform log anomaly detection on CloudWatch log groups. Valid values are DISABLED
and ENABLED
.ops_center
Argument Referenceopt_in_status
- (Optional) Specifies if DevOps Guru is enabled to create an AWS Systems Manager OpsItem for each created insight. Valid values are DISABLED
and ENABLED
.This resource exports the following attributes in addition to the arguments above:
id
- AWS region.In Terraform v1.5.0 and later, use an import
block to import DevOps Guru Service Integration using the id
. For example:
import {
to = aws_devopsguru_service_integration.example
id = "us-east-1"
}
Using terraform import
, import DevOps Guru Service Integration using the id
. For example:
% terraform import aws_devopsguru_service_integration.example us-east-1