Resource: aws_backup_report_plan

Provides an AWS Backup Report Plan resource.

Example Usage

resource "aws_backup_report_plan" "example" {
  name        = "example_name"
  description = "example description"

  report_delivery_channel {
    formats = [
      "CSV",
      "JSON"
    ]
    s3_bucket_name = "example-bucket-name"
  }

  report_setting {
    report_template = "RESTORE_JOB_REPORT"
  }

  tags = {
    "Name" = "Example Report Plan"
  }
}

Argument Reference

This resource supports the following arguments:

Report Delivery Channel Arguments

report_delivery_channel supports the following arguments:

Report Setting Arguments

report_setting 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 Backup Report Plan using the id which corresponds to the name of the Backup Report Plan. For example:

import {
  to = aws_backup_report_plan.test
  id = "<id>"
}

Using terraform import, import Backup Report Plan using the id which corresponds to the name of the Backup Report Plan. For example:

% terraform import aws_backup_report_plan.test <id>