Resource: aws_ssmincidents_replication_set

Provides a resource for managing a replication set in AWS Systems Manager Incident Manager.

Example Usage

Basic Usage

Create a replication set.

resource "aws_ssmincidents_replication_set" "replicationSetName" {
  region {
    name = "us-west-2"
  }

  tags = {
    exampleTag = "exampleValue"
  }
}

Add a Region to a replication set. (You can add only one Region at a time.)

resource "aws_ssmincidents_replication_set" "replicationSetName" {
  region {
    name = "us-west-2"
  }

  region {
    name = "ap-southeast-2"
  }
}

Delete a Region from a replication set. (You can delete only one Region at a time.)

resource "aws_ssmincidents_replication_set" "replicationSetName" {
  region {
    name = "us-west-2"
  }
}

Basic Usage with an AWS Customer Managed Key

Create a replication set with an AWS Key Management Service (AWS KMS) customer manager key:

resource "aws_kms_key" "example_key" {}

resource "aws_ssmincidents_replication_set" "replicationSetName" {
  region {
    name        = "us-west-2"
    kms_key_arn = aws_kms_key.example_key.arn
  }

  tags = {
    exampleTag = "exampleValue"
  }
}

Argument Reference

The region configuration block is required and supports the following arguments:

The following arguments are optional:

For information about the maximum allowed number of Regions and tag value constraints, see CreateReplicationSet in the AWS Systems Manager Incident Manager API Reference.

Attribute Reference

This resource exports the following attributes in addition to the arguments above:

In addition to the preceding arguments, the region configuration block exports the following attributes for each Region:

Timeouts

Configuration options:

Import

In Terraform v1.5.0 and later, use an import block to import an Incident Manager replication. For example:

import {
  to = aws_ssmincidents_replication_set.replicationSetName
  id = "import"
}

Using terraform import, import an Incident Manager replication. For example:

% terraform import aws_ssmincidents_replication_set.replicationSetName import