-
Notifications
You must be signed in to change notification settings - Fork 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
feat(appsync): add Elasticsearch data source - fixes #6063 #6108
Conversation
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
@bartcallant I'm tempted to hold off on merging this until there is an Elasticsearch L2 construct. That way That being said, App Sync constructs are still experimental and a breaking change in the future isn't the worst thing in the world. @shivlaks @bartcallant what do you think? |
How about creating, in the |
I'm definitely on board with that considering we are doing the same elsewhere. Thanks @skinny85 😄 |
@bartcallant let us know if the above makes sense and you want to move forward with this. |
I was also unaware that we do this elsewhere. It sounds like a nice compromise in this situation. |
You've got a point with the consistency between the adding of datasources. Is there a timeline when a L2 construct could be introduced? (I could not find any issue/pr) Personally I think those should be done through a separate PR, no? Should there be an issue first where we can correctly discuss the implementation details? |
I think it's completely fine to introduce the simple L2 in the same PR that it will be used in. Makes a lot of sense, actually (PRs generally should be atomic and self-contained). |
@bartcallant If we wanted to create a fully fleshed out L2 for ES I'd agree. If we are only creating a minimal interface for an Index to pass around to other constructs (this being the first) I think we can do it in this PR. @skinny85 am I right in the understanding that the |
Yes, absolutely. They just need to be classes / interfaces that you can use for integrations. When it's time to build an entire L2 for ElasticSearch, you'll simply fill the existing shells with more functionality. |
I will try to implement this tonight or tomorrow evening. |
@bartcallant gonna close this for now. Reopen when you're ready. If we or someone else happens to pick this up before that I'll reach out for review feedback. |
This is a PR which adds Elasticsearch as a data source for AppSync.
I mentioned in the #6063 there are several default request/response templates for AppSync. They are all included except for the
Get all documents within a 20 mile radius
one. Not sure if that one should be included, just let me know. Then I can add it as well.Also updated the integration test to include an Elasticsearch data resolved.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license