-
Notifications
You must be signed in to change notification settings - Fork 207
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
Adds the new AWS Extension Plugin for Data Prepper #2754
Adds the new AWS Extension Plugin for Data Prepper #2754
Conversation
…tandardizing how we load AWS credentials. opensearch-project#2751 Signed-off-by: David Venable <[email protected]>
import static org.mockito.Mockito.when; | ||
|
||
@ExtendWith(MockitoExtension.class) | ||
class CredentialsProviderFactoryTest { |
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.
* The {@link ExtensionPlugin} class which adds the AWS Plugin to | ||
* Data Prepper as an extension plugin. Everything starts from here. | ||
*/ | ||
public class AwsPlugin implements ExtensionPlugin { |
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.
This does not need a @DataPrepperPlugin
annotation?
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.
No, the Plugin Framework detects extensions by anything that implements ExtensionPlugin
, so no annotation is needed.
I considered adding an annotation, but it would be empty, so I'm not sure it adds much value over just looking for sub-classes.
…e case in a GitHub Action. Signed-off-by: David Venable <[email protected]>
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.
QUES: does it support multiple aws credentials with different identifier?
Not in this revision. However, see #2570 for a proposal for that. |
Description
This creates a new AWS Extension Plugin. With this initial PR, this plugin supports a standard approach to AWS credentials management.
To try to keep this PR from being too large, I only included the new plugin. You can see #2731 to get a sense of how this will be used in other plugins. I'll create follow-on PRs to incorporate this into the other plugins accordingly.
Issues Resolved
Resolves #2751
Check List
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.