# Manage your Elastic security stack as code with the Elastic Stack Terraform provider

DevFeed: [Manage your Elastic security stack as code with the Elastic Stack Terraform provider](<https://devfeed.tech/articles/manage-your-elastic-security-stack-as-code-with-the-elastic-stack-terraform-provider-48918.md>)

Original publisher: [Read original article](<https://www.elastic.co/security-labs/blog/manage-elastic-with-terraform>)

Author: Omer Kushmaro

Published: 2026-02-27T00:00:00Z

Content type: article

Language: en

Sources: [Elastic Security Labs](<https://devfeed.tech/sources/elastic-security-labs.md>)

Topics: [Terraform](<https://devfeed.tech/topics/terraform.md>), [Infrastructure as code](<https://devfeed.tech/topics/infrastructure-as-code.md>), [Provisioning](<https://devfeed.tech/topics/provisioning.md>), [Security](<https://devfeed.tech/topics/security.md>), [observability](<https://devfeed.tech/topics/observability.md>), [Machine learning](<https://devfeed.tech/topics/machine-learning.md>), [Pull Request](<https://devfeed.tech/topics/pull-request.md>)

Tags: [audit-trail](<https://devfeed.tech/tags/audit-trail.md>), [code-review](<https://devfeed.tech/tags/code-review.md>), [configuration-drift](<https://devfeed.tech/tags/configuration-drift.md>), [git](<https://devfeed.tech/tags/git.md>), [hashicorp](<https://devfeed.tech/tags/hashicorp.md>), [hcl](<https://devfeed.tech/tags/hcl.md>), [infrastructure-as-code](<https://devfeed.tech/tags/infrastructure-as-code.md>), [integrations-tools](<https://devfeed.tech/tags/integrations-tools.md>), [ml](<https://devfeed.tech/tags/ml.md>), [observability](<https://devfeed.tech/tags/observability.md>), [security](<https://devfeed.tech/tags/security.md>), [terraform](<https://devfeed.tech/tags/terraform.md>), [terraform-provider](<https://devfeed.tech/tags/terraform-provider.md>)

## AI overview

Elastic's Terraform provider lets teams manage security detection rules, exception lists, prebuilt rules, machine-learning anomaly detection jobs, synthetics monitors, and AI connectors as version-controlled infrastructure-as-code. This brings these configurations into Git-based, peer-reviewed workflows and helps reduce configuration drift while improving auditability and reproducibility across environments.

## Source excerpt

From detection rules to AI connectors - the latest Terraform provider releases bring security, observability, and ML capabilities to your infrastructure-as-code workflows.