-
Notifications
You must be signed in to change notification settings - Fork 9.6k
Open
Labels
bugAddresses a defect in current functionality.Addresses a defect in current functionality.service/dmsIssues and PRs that pertain to the dms service.Issues and PRs that pertain to the dms service.
Description
Terraform Core Version
1.5.7
AWS Provider Version
5.70.0
Affected Resource(s)
- aws_dms_endpoint resource
Expected Behavior
I am working on a data migration exercise from MongoDB (on-prem) to AWS DocumentDB. Terraform AWS provider should allow creation of a (target) DMS endpoint with "docdb" engine and using an SSM ARN to get the hostname and credentials for establishing the connection. The AWS console allow this configuration.
Actual Behavior
Terraform does not support the use of SSM for DMS endpoint with engine type "docdb".
Relevant Error/Panic Output Snippet
Terraform does not support the use of SSM for DMS endpoint with engine type "docdb".
│ Error: creating DMS Endpoint (target-aws-endpoint): operation error Database Migration Service: CreateEndpoint, https response error StatusCode: 400, RequestID: d1bf8c78-1eda-4a88-a5e6-5aad39afde4d, api error InvalidParameterValueException: The parameter Password must be provided and must not be blank.
Terraform Configuration Files
resource "aws_dms_endpoint" "target_endpoint" {
endpoint_id = "target-aws-endpoint"
endpoint_type = "target"
engine_name = "docdb"
kms_key_arn = var.kms_key_arn
ssl_mode = "verify-ca"
certificate_arn = aws_dms_certificate.dms_cert.certificate_arn
secrets_manager_arn = var.aws_secret_arn
secrets_manager_access_role_arn = var.dms_settings.target_endpoint.secrets_manager_access_role_arn
mongodb_settings {
auth_type = "no"
extract_doc_id = true
}
}
Steps to Reproduce
Create dms endpoint for "dodb" engine with a SSM secret id configuration.
terraform plan
Debug Output
No response
Panic Output
No response
Important Factoids
No response
References
No response
Would you like to implement a fix?
None
hammadausaf
Metadata
Metadata
Assignees
Labels
bugAddresses a defect in current functionality.Addresses a defect in current functionality.service/dmsIssues and PRs that pertain to the dms service.Issues and PRs that pertain to the dms service.