Resource: aws_route53recoverycontrolconfig_safety_rule

Provides an AWS Route 53 Recovery Control Config Safety Rule

Example Usage

resource "aws_route53recoverycontrolconfig_safety_rule" "example" {
  asserted_controls = [aws_route53recoverycontrolconfig_routing_control.example.arn]
  control_panel_arn = "arn:aws:route53-recovery-control::313517334327:controlpanel/abd5fbfc052d4844a082dbf400f61da8"
  name              = "daisyguttridge"
  wait_period_ms    = 5000

  rule_config {
    inverted  = false
    threshold = 1
    type      = "ATLEAST"
  }
}
resource "aws_route53recoverycontrolconfig_safety_rule" "example" {
  name              = "i_o"
  control_panel_arn = "arn:aws:route53-recovery-control::313517334327:controlpanel/abd5fbfc052d4844a082dbf400f61da8"
  wait_period_ms    = 5000
  gating_controls   = [aws_route53recoverycontrolconfig_routing_control.example.arn]
  target_controls   = [aws_route53recoverycontrolconfig_routing_control.example.arn]

  rule_config {
    inverted  = false
    threshold = 1
    type      = "ATLEAST"
  }
}

Argument Reference

This resource supports the following arguments:

The following arguments are optional:

rule_config

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 Route53 Recovery Control Config Safety Rule using the safety rule ARN. For example:

import {
  to = aws_route53recoverycontrolconfig_safety_rule.myrule
  id = "arn:aws:route53-recovery-control::313517334327:controlpanel/1bfba17df8684f5dab0467b71424f7e8/safetyrule/3bacc77003364c0f"
}

Using terraform import, import Route53 Recovery Control Config Safety Rule using the safety rule ARN. For example:

% terraform import aws_route53recoverycontrolconfig_safety_rule.myrule arn:aws:route53-recovery-control::313517334327:controlpanel/1bfba17df8684f5dab0467b71424f7e8/safetyrule/3bacc77003364c0f