Resource: aws_rbin_rule

Terraform resource for managing an AWS RBin Rule.

Example Usage

Basic Usage

resource "aws_rbin_rule" "example" {
  description   = "example_rule"
  resource_type = "EBS_SNAPSHOT"

  resource_tags {
    resource_tag_key   = "tag_key"
    resource_tag_value = "tag_value"
  }

  retention_period {
    retention_period_value = 10
    retention_period_unit  = "DAYS"
  }

  tags = {
    "test_tag_key" = "test_tag_value"
  }
}

Argument Reference

The following arguments are required:

The following arguments are optional:

retention_period

The following arguments are required:

resource_tags

The following argument is required:

The following argument is optional:

lock_configuration

The following argument is required:

unlock_delay

The following arguments are required:

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 RBin Rule using the id. For example:

import {
  to = aws_rbin_rule.example
  id = "examplerule"
}

Using terraform import, import RBin Rule using the id. For example:

% terraform import aws_rbin_rule.example examplerule