-
Notifications
You must be signed in to change notification settings - Fork 9.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow Elasticsearch to be used as an engine for DMS Endpoint #11792
Allow Elasticsearch to be used as an engine for DMS Endpoint #11792
Conversation
elasticsearch
to be used as an engine for DMS Endpoint
elasticsearch
to be used as an engine for DMS Endpoint
aws/resource_aws_dms_endpoint.go
Outdated
"error_retry_duration": { | ||
Type: schema.TypeInt, | ||
Optional: true, | ||
Default: "10", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As per https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Target.Elasticsearch.html the default should be 300
aws/resource_aws_dms_endpoint.go
Outdated
"full_load_error_percentage": { | ||
Type: schema.TypeInt, | ||
Optional: true, | ||
Default: "300", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And this one should default to 10
@@ -65,6 +65,7 @@ The following arguments are supported: | |||
* `service_access_role` - (Optional) The Amazon Resource Name (ARN) used by the service access IAM role for dynamodb endpoints. | |||
* `mongodb_settings` - (Optional) Settings for the source MongoDB endpoint. Available settings are `auth_type` (default: `password`), `auth_mechanism` (default: `default`), `nesting_level` (default: `none`), `extract_doc_id` (default: `false`), `docs_to_investigate` (default: `1000`) and `auth_source` (default: `admin`). For more details, see [Using MongoDB as a Source for AWS DMS](https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Source.MongoDB.html). | |||
* `s3_settings` - (Optional) Settings for the target S3 endpoint. Available settings are `service_access_role_arn`, `external_table_definition`, `csv_row_delimiter` (default: `\\n`), `csv_delimiter` (default: `,`), `bucket_folder`, `bucket_name` and `compression_type` (default: `NONE`). For more details, see [Using Amazon S3 as a Target for AWS Database Migration Service](https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Target.S3.html). | |||
* `elasticsearch_settings` - (Optional) Settings for the target Elasticsearch. Available settings are `service_access_role_arn`, `endpoint_uri`, `error_retry_duration` (default: `10`) and `full_load_error_percentage` (default: `300`). For more details, see [Using an Amazon Elasticsearch Service Cluster as a Target for AWS Database Migration Service](https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Target.Elasticsearch.html). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Default values for error_retry_duration and full_load_error_percentage are swapped.
@johanwiren swapped the default values |
We urgently need support for this. We are planning on streaming data from our production databases to ELK in the next week and I really don't want to put this in through the console |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @timrcoulson 👋 Thank you for submitting this. Looks good. I'll be merging this along with #8633 so you don't need to fix merge conflicts. 👍
Output from acceptance testing:
--- PASS: TestAccAwsDmsEndpoint_Basic (28.67s)
--- PASS: TestAccAwsDmsEndpoint_Db2 (29.07s)
--- PASS: TestAccAwsDmsEndpoint_DocDB (29.22s)
--- PASS: TestAccAwsDmsEndpoint_Elasticsearch_ErrorRetryDuration (35.89s)
--- PASS: TestAccAwsDmsEndpoint_Elasticsearch (36.07s)
--- PASS: TestAccAwsDmsEndpoint_Elasticsearch_FullLoadErrorPercentage (36.14s)
--- PASS: TestAccAwsDmsEndpoint_MongoDb (36.37s)
--- PASS: TestAccAwsDmsEndpoint_DynamoDb (38.07s)
--- PASS: TestAccAwsDmsEndpoint_S3 (39.49s)
--- PASS: TestAccAwsDmsEndpoint_Kinesis (82.14s)
This has been released in version 2.58.0 of the Terraform AWS provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template for triage. Thanks! |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks! |
Community Note
Closes #9899
Release note for CHANGELOG:
Output from acceptance testing: