hashicorp / terraform-provider-aws

The AWS Provider enables Terraform to manage AWS resources.
https://registry.terraform.io/providers/hashicorp/aws
Mozilla Public License 2.0
9.61k stars 8.99k forks source link

[Bug]: aws_dms_endpoint does not apply redshift_settings to redshift-serverless endpoints #37063

Open k-brooks opened 2 months ago

k-brooks commented 2 months ago

Terraform Core Version

1.8.1

AWS Provider Version

5.46.0

Affected Resource(s)

Expected Behavior

Both engines redshift and redshift-serverless should apply the redshift settings.

Actual Behavior

The redshift-serverless engine does not, seemingly from the case switches missing the engineNameRedshiftServerless constant:

Relevant Error/Panic Output Snippet

No response

Terraform Configuration Files

resource "aws_dms_endpoint" "target" {
  endpoint_id         = lower("${var.task_name_prefix}-tgt")
  endpoint_type       = "target"
  engine_name         = "redshift-serverless"
  database_name       = var.target_db_name
  server_name         = var.redshift_endpoint
  username            = var.redshift_username
  password            = var.redshift_password
  port                = var.redshift_port
  service_access_role = var.redshift_service_access_role_arn
  redshift_settings {
    bucket_folder = var.target_db_name
    bucket_name   = var.redshift_intermediate_bucket_name
  }
}

Steps to Reproduce

  1. Apply the resource
  2. Inspect the endpoint settings in the console or CLI - notice the lack of s3 details

Debug Output

No response

Panic Output

No response

Important Factoids

No response

References

No response

Would you like to implement a fix?

None

github-actions[bot] commented 2 months ago

Community Note

Voting for Prioritization

Volunteering to Work on This Issue

fred-13 commented 2 months ago

I also encountered a similar error. I tried to apply it via the extra_connection_attributes parameter, but it didn't work. Hope this gets fixed soon.

justinretzolk commented 2 months ago

Similar to #35834

amr-aly-slalom commented 1 month ago

Same issue. Settings are not applied