terraform-aws-dms icon indicating copy to clipboard operation
terraform-aws-dms copied to clipboard

Add support for redshift-serverless target

Open esanchezm opened this issue 1 year ago β€’ 0 comments

This could be a duplicate of #55 , which was closed to inactivity.

Is your request related to a problem? Please describe.

We want to use DMS to sync from a db to redshift-serverless. The module already offers a good solution for redshift targets, but the trust policy for the role must be different for this case

{
    "Sid": "",
    "Effect": "Allow",
    "Principal": {
        "Service": "redshift-serverless.amazonaws.com"
    },
    "Action": "sts:AssumeRole"
}

Describe the solution you'd like.

Probably adding a new variable enable_redshift_serverless_target_permissions like suggested in #55 that will determine the use of a different assume_role_policy in the resource "aws_iam_role" "dms_access_for_endpoint"

Describe alternatives you've considered.

Creating the dms-access-for-endpoint IAM role from outside but it's complicating things as I'm basically copy-pasting what's in the module πŸ—‘οΈ

esanchezm avatar Sep 10 '24 16:09 esanchezm