Skip to content
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

aws_dms_endpoint: Add Kinesis as a target endpoint type #8633

Merged
merged 3 commits into from
Apr 15, 2020

Conversation

jbergknoff-rival
Copy link
Contributor

@jbergknoff-rival jbergknoff-rival commented May 14, 2019

This PR adds Kinesis as a DMS target endpoint type. #6658 #8053

Also, the acceptance test for MongoDB DMS endpoints was broken, and I implemented a fix (or workaround?) here as well. #7492

Finally, I'd just like to request some input on @chrisjharding's #2305. Without that functionality, it's really not feasible to use DMS via Terraform (it's currently necessary to do work outside of Terraform to start a replication task, and it's not possible to modify an in-progress replication via Terraform). If the author of that PR is available to respond to review, great. If not, maybe I can implement whatever changes are needed to get it merged.

Community Note

  • Please vote on this pull request by adding a 👍 reaction to the original pull request comment to help the community and maintainers prioritize this request
  • Please do not leave "+1" comments, they generate extra noise for pull request followers and do not help prioritize the request

Fixes:

Release note for CHANGELOG:

resource/aws_dms_endpoint: Add Kinesis as a target

Output from acceptance testing:

$ make testacc TEST=./aws TESTARGS='-run=TestAccAwsDmsEndpoint'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws -v -parallel 20 -run=TestAccAwsDmsEndpoint -timeout 120m
=== RUN   TestAccAwsDmsEndpointBasic
=== PAUSE TestAccAwsDmsEndpointBasic
=== RUN   TestAccAwsDmsEndpointS3
=== PAUSE TestAccAwsDmsEndpointS3
=== RUN   TestAccAwsDmsEndpointDynamoDb
=== PAUSE TestAccAwsDmsEndpointDynamoDb
=== RUN   TestAccAwsDmsEndpointKinesis
=== PAUSE TestAccAwsDmsEndpointKinesis
=== RUN   TestAccAwsDmsEndpointMongoDb
=== PAUSE TestAccAwsDmsEndpointMongoDb
=== RUN   TestAccAwsDmsEndpointDocDB
=== PAUSE TestAccAwsDmsEndpointDocDB
=== CONT  TestAccAwsDmsEndpointBasic
=== CONT  TestAccAwsDmsEndpointMongoDb
=== CONT  TestAccAwsDmsEndpointKinesis
=== CONT  TestAccAwsDmsEndpointDocDB
=== CONT  TestAccAwsDmsEndpointDynamoDb
=== CONT  TestAccAwsDmsEndpointS3
--- PASS: TestAccAwsDmsEndpointDocDB (26.69s)
--- PASS: TestAccAwsDmsEndpointBasic (26.73s)
--- PASS: TestAccAwsDmsEndpointMongoDb (32.25s)
--- PASS: TestAccAwsDmsEndpointDynamoDb (36.77s)
--- PASS: TestAccAwsDmsEndpointS3 (37.67s)
--- PASS: TestAccAwsDmsEndpointKinesis (114.30s)
PASS
ok      github.com/terraform-providers/terraform-provider-aws/aws   114.358s

@ghost ghost added size/L Managed by automation to categorize the size of a PR. service/databasemigrationservice tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure. documentation Introduces or discusses updates to documentation. labels May 14, 2019
@aeschright aeschright requested a review from a team June 26, 2019 16:53
@bordeux
Copy link

bordeux commented Jul 18, 2019

What is the status on it ? :)

@jbergknoff-rival
Copy link
Contributor Author

What is the status on it ? :)

I don't think the maintainers have looked at this PR.

Separately, my team finished our POC using DMS to push a Postgres change stream to Kinesis, but abandoned it because the Kinesis DMS target has no support for LOB types (e.g. text columns) and the throughput was abysmal (the limiting factor was DMS, not Kinesis or Postgres).

@bflad bflad self-assigned this Apr 1, 2020
@bflad bflad added the enhancement Requests to existing resources that expand the functionality or scope. label Apr 1, 2020
@bflad bflad added this to the v2.58.0 milestone Apr 15, 2020
Copy link
Contributor

@bflad bflad left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @jbergknoff-rival 👋 Apologies for the delayed review here. We're going to fix the merge conflicts and pull this in with some very minor adjustments (mainly just removing the mongodb changes). Looks good! 🚀

Output from acceptance testing:

--- PASS: TestAccAwsDmsEndpoint_DocDB (29.10s)
--- PASS: TestAccAwsDmsEndpoint_Db2 (29.17s)
--- PASS: TestAccAwsDmsEndpoint_Basic (29.30s)
--- PASS: TestAccAwsDmsEndpoint_MongoDb (36.13s)
--- PASS: TestAccAwsDmsEndpoint_DynamoDb (37.92s)
--- PASS: TestAccAwsDmsEndpoint_S3 (39.02s)
--- PASS: TestAccAwsDmsEndpoint_Kinesis (79.51s)

bflad added a commit that referenced this pull request Apr 15, 2020
…entation and back out mongodb changes from #8633

Output from acceptance testing:

```
--- PASS: TestAccAwsDmsEndpoint_DocDB (29.10s)
--- PASS: TestAccAwsDmsEndpoint_Db2 (29.17s)
--- PASS: TestAccAwsDmsEndpoint_Basic (29.30s)
--- PASS: TestAccAwsDmsEndpoint_MongoDb (36.13s)
--- PASS: TestAccAwsDmsEndpoint_DynamoDb (37.92s)
--- PASS: TestAccAwsDmsEndpoint_S3 (39.02s)
--- PASS: TestAccAwsDmsEndpoint_Kinesis (79.51s)
```
@bflad bflad merged commit 915618a into hashicorp:master Apr 15, 2020
bflad added a commit that referenced this pull request Apr 15, 2020
@ghost
Copy link

ghost commented Apr 17, 2020

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!

@ghost
Copy link

ghost commented May 16, 2020

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!

@ghost ghost locked and limited conversation to collaborators May 16, 2020
@jbergknoff-rival jbergknoff-rival deleted the jbergknoff/dms-endpoint-kinesis branch June 25, 2020 16:25
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
documentation Introduces or discusses updates to documentation. enhancement Requests to existing resources that expand the functionality or scope. size/L Managed by automation to categorize the size of a PR. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure.
Projects
None yet
3 participants