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.74k stars 9.1k forks source link

[Bug]: GlueCatalogGeneration feature is not available for S3 source endpoint #34029

Open voroninman opened 11 months ago

voroninman commented 11 months ago

Terraform Core Version

1.6.2

AWS Provider Version

5.22.0

Affected Resource(s)

Expected Behavior

The aws_dms_s3_endpoint creates the endpoint with GlueCatalogGeneration parameter is set to true.

Actual Behavior

module.dms.aws_dms_s3_endpoint.target_full[0]: Modifying... [id=sandbox-data-lake-full]
╷
│ Error: updating AWS DMS (Database Migration) S3 Endpoint (sandbox-data-lake-full): InvalidParameterCombinationException: GlueCatalogGeneration feature is not available for S3 source endpoint
│       status code: 400, request id: 73faa435-96f9-4e65-93a6-a4c488ec0799
│
│   with module.dms.aws_dms_s3_endpoint.target_full[0],
│   on ../../modules/dms/main.tf line 85, in resource "aws_dms_s3_endpoint" "target_full":
│   85: resource "aws_dms_s3_endpoint" "target_full" {
│
╵

Relevant Error/Panic Output Snippet

No response

Terraform Configuration Files

resource "aws_dms_s3_endpoint" "target" {
  endpoint_id             = "s3-dms-endpoint"
  endpoint_type           = "target"
  bucket_name             = "my-bucket"
  service_access_role_arn = aws_iam_role.s3_endpoint.arn

  glue_catalog_generation  = true
  include_op_for_full_load = true

  depends_on = [aws_iam_role.s3_endpoint]
}

Steps to Reproduce

terraform apply

Debug Output

No response

Panic Output

No response

Important Factoids

No response

References

https://github.com/hashicorp/terraform-provider-aws/issues/33202#issuecomment-1764531364

Would you like to implement a fix?

No

github-actions[bot] commented 11 months ago

Community Note

Voting for Prioritization

Volunteering to Work on This Issue

msneller commented 9 months ago

Looks like this only happens if you need to update the endpoint. Manually deleting before running terraform apply results in the endpoint being created correctly.

bennos3 commented 1 month ago

Still happening for me in 2024.

terraform 1.8.5 aws provider 5.35.0

Unable to modify the target S3 endpoint. Error thinks its a source endpoint. This is annoying as you need to also delete your whole replication task before you can delete the endpoint. Then re-deploy everything.