Resource: aws_auditmanager_assessment

Terraform resource for managing an AWS Audit Manager Assessment.

Example Usage

Basic Usage

resource "aws_auditmanager_assessment" "test" {
  name = "example"

  assessment_reports_destination {
    destination      = "s3://${aws_s3_bucket.test.id}"
    destination_type = "S3"
  }

  framework_id = aws_auditmanager_framework.test.id

  roles {
    role_arn  = aws_iam_role.test.arn
    role_type = "PROCESS_OWNER"
  }

  scope {
    aws_accounts {
      id = data.aws_caller_identity.current.account_id
    }
    aws_services {
      service_name = "S3"
    }
  }
}

Argument Reference

The following arguments are required:

The following arguments are optional:

assessment_reports_destination

roles

scope

aws_accounts

aws_services

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 Assessments using the assessment id. For example:

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

Using terraform import, import Audit Manager Assessments using the assessment id. For example:

% terraform import aws_auditmanager_assessment.example abc123-de45