Provides a resource for managing a replication set in AWS Systems Manager Incident Manager.
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"
}
}
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"
}
}
The region
configuration block is required and supports the following arguments:
name
- (Required) The name of the Region, such as ap-southeast-2
.kms_key_arn
- (Optional) The Amazon Resource name (ARN) of the customer managed key. If omitted, AWS manages the AWS KMS keys for you, using an AWS owned key, as indicated by a default value of DefaultKey
.The following arguments are optional:
tags
- Tags applied to the replication set.For information about the maximum allowed number of Regions and tag value constraints, see CreateReplicationSet in the AWS Systems Manager Incident Manager API Reference.
This resource exports the following attributes in addition to the arguments above:
arn
- The ARN of the replication set.tags_all
- A map of tags assigned to the resource, including those inherited from the provider default_tags
configuration block.created_by
- The ARN of the user who created the replication set.created_time
- A timestamp showing when the replication set was created.deletion_protected
- If true
, the last region in a replication set cannot be deleted.last_modified_by
- A timestamp showing when the replication set was last modified.last_modified_time
- When the replication set was last modifiedstatus
- The overall status of a replication set.
ACTIVE
| CREATING
| UPDATING
| DELETING
| FAILED
In addition to the preceding arguments, the region
configuration block exports the following attributes for each Region:
status
- The current status of the Region.
ACTIVE
| CREATING
| UPDATING
| DELETING
| FAILED
status_update_time
- A timestamp showing when the Region status was last updated.status_message
- More information about the status of a Region.create
- (Default 120m
)update
- (Default 120m
)delete
- (Default 120m
)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