Terraform data source for managing an AWS Audit Manager Control.
data "aws_auditmanager_control" "example" {
name = "1. Risk Management"
type = "Standard"
}
data "aws_auditmanager_control" "example" {
name = "1. Risk Management"
type = "Standard"
}
data "aws_auditmanager_control" "example2" {
name = "2. Personnel"
type = "Standard"
}
resource "aws_auditmanager_framework" "example" {
name = "example"
control_sets {
name = "example"
controls {
id = data.aws_auditmanager_control.example.id
}
}
control_sets {
name = "example2"
controls {
id = data.aws_auditmanager_control.example2.id
}
}
}
The following arguments are required:
name
- (Required) Name of the control.type
- (Required) Type of control. Valid values are Custom
and Standard
.See the aws_auditmanager_control
resource for details on the returned attributes - they are identical.