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

Splitting AWS to 2 modules, cloud-common and AWS #993

Merged
merged 2 commits into from
Oct 2, 2023

Conversation

davidsloan
Copy link
Collaborator

@davidsloan davidsloan commented Sep 29, 2023

In order to develop other cloud connectors it would be nice to reuse the non-AWS-specific components of the source and sink.

(I am attempting to break these changes up into regular PRs so as to avoid what happened last time with the master branch moving on.)

A new module has been introduced, cloud-common, with the base source, sink and configuration components. It is hoped that we will be able to replace the transport layers in the AWS/cloud submodules and therefore be able to support other cloud connectors.

There will be more complexity than this but this is a first stab of isolating what could live in a common module.

Behaviour is unchanged with the exception of removing support for the yaml profiles.

Because the connector prefix will change according to the connector, there are many changes designed to facilitate multiple connector prefixes (for example, introducing a mixin for using the key).

Also as a first iteration S3Location has been renamed to CloudLocation. It may be necessary to introduce an interface for these later but will try it like this for now. For validation a CloudLocationValidator is implicitly supplied, sourced from the ConnectorTask. In the code this has little impact but there is more impact in the tests.

@davidsloan davidsloan marked this pull request as ready for review September 29, 2023 15:55
@davidsloan davidsloan changed the title Splitting AWS to 2 modules, cloud-common and AWS. This is a WIP Splitting AWS to 2 modules, cloud-common and AWS Sep 29, 2023
@davidsloan davidsloan force-pushed the feat/split-s3-cloud-and-aws branch from f5e972d to 5825694 Compare October 2, 2023 15:15
@davidsloan davidsloan force-pushed the feat/split-s3-cloud-and-aws branch from 5825694 to 31ac556 Compare October 2, 2023 15:35
@davidsloan davidsloan merged commit dd85a36 into master Oct 2, 2023
@davidsloan davidsloan deleted the feat/split-s3-cloud-and-aws branch October 2, 2023 16:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants