Resource: aws_auditmanager_framework

Terraform resource for managing an AWS Audit Manager Framework.

Example Usage

Basic Usage

resource "aws_auditmanager_framework" "test" {
  name = "example"

  control_sets {
    name = "example"
    controls {
      id = aws_auditmanager_control.test_1.id
    }
    controls {
      id = aws_auditmanager_control.test_2.id
    }
  }
}

Argument Reference

The following arguments are required:

The following arguments are optional:

control_sets Block

The control_sets configuration block supports the following arguments:

controls Block

The controls configuration block supports the following arguments:

Attribute Reference

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

Import

In Terraform v1.5.0 and later, use an import block to import Audit Manager Framework using the framework id. For example:

import {
  to = aws_auditmanager_framework.example
  id = "abc123-de45"
}

Using terraform import, import Audit Manager Framework using the framework id. For example:

% terraform import aws_auditmanager_framework.example abc123-de45