Description
In the AWS console, when creating a new DMS replication task, you can set a Task identifier, but also an ARN:
Descriptive Amazon Resource Name (ARN) - optional
A friendly name to override the default DMS ARN. You cannot modify it after creation
That way, you don't end up with unpredictable ARNs for ReplicationTasks, like
arn:aws:dms:eu-west-3:123456789012:task:KAEGH2KCHYX4SVGK34ZFEDMG5VGASMXBXDXZ7ZI
but rather
arn:aws:dms:eu-west-3:123456789012:task:my-descriptive-task .
In the AWS API, this field is called ResourceIdentifier
Affected Resource(s) and/or Data Source(s)
aws_dms_replication_task
Potential Terraform Configuration
# Create a new replication task
resource "aws_dms_replication_task" "test" {
cdc_start_time = "1993-05-21T05:50:00Z"
migration_type = "full-load"
replication_instance_arn = aws_dms_replication_instance.test-dms-replication-instance-tf.replication_instance_arn
replication_task_id = "test-dms-replication-task-tf"
replication_task_settings = "..."
source_endpoint_arn = aws_dms_endpoint.test-dms-source-endpoint-tf.endpoint_arn
table_mappings = "{\"rules\":[{\"rule-type\":\"selection\",\"rule-id\":\"1\",\"rule-name\":\"1\",\"object-locator\":{\"schema-name\":\"%\",\"table-name\":\"%\"},\"rule-action\":\"include\"}]}"
tags = {
Name = "test"
}
target_endpoint_arn = aws_dms_endpoint.test-dms-target-endpoint-tf.endpoint_arn
resource_identifier = "my-descriptive-resource-identifier"
}
References
No response
Would you like to implement a fix?
None
Description
In the AWS console, when creating a new DMS replication task, you can set a
Task identifier, but also an ARN:That way, you don't end up with unpredictable ARNs for ReplicationTasks, like
arn:aws:dms:eu-west-3:123456789012:task:KAEGH2KCHYX4SVGK34ZFEDMG5VGASMXBXDXZ7ZIbut rather
arn:aws:dms:eu-west-3:123456789012:task:my-descriptive-task.In the AWS API, this field is called
ResourceIdentifierAffected Resource(s) and/or Data Source(s)
aws_dms_replication_task
Potential Terraform Configuration
References
No response
Would you like to implement a fix?
None