Resource: aws_config_organization_managed_rule

Manages a Config Organization Managed Rule. More information about these rules can be found in the Enabling AWS Config Rules Across all Accounts in Your Organization and AWS Config Managed Rules documentation. For working with Organization Custom Rules (those invoking a custom Lambda Function), see the aws_config_organization_custom_rule resource.

Example Usage

resource "aws_organizations_organization" "example" {
  aws_service_access_principals = ["config-multiaccountsetup.amazonaws.com"]
  feature_set                   = "ALL"
}

resource "aws_config_organization_managed_rule" "example" {
  depends_on = [aws_organizations_organization.example]

  name            = "example"
  rule_identifier = "IAM_PASSWORD_POLICY"
}

Argument Reference

This resource supports the following arguments:

Attribute Reference

This resource exports the following attributes in addition to the arguments above:

Timeouts

Configuration options:

Import

In Terraform v1.5.0 and later, use an import block to import Config Organization Managed Rules using the name. For example:

import {
  to = aws_config_organization_managed_rule.example
  id = "example"
}

Using terraform import, import Config Organization Managed Rules using the name. For example:

% terraform import aws_config_organization_managed_rule.example example