-
Notifications
You must be signed in to change notification settings - Fork 33
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
Use alternative ARN as credentials when configured #262
Closed
Closed
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
159137e
Add capability to swap FlintSparkConf values based on usage mode
Swiddis fc5e2a3
Revert "Add capability to swap FlintSparkConf values based on usage m…
Swiddis f0b33ff
Add repl customAWSCredentialsProvider
Swiddis da7eca3
Add ARN environment variable for sessionIndex credentials
Swiddis 7ec26d7
Add new session ARN to client construction
Swiddis 3dc0be9
Merge remote-tracking branch 'origin/main' into feature/repl-spark-conf
Swiddis 6ea5e99
Fix unused variable in list
Swiddis File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -77,6 +77,13 @@ object FlintSparkConf { | |
.doc("AWS customAWSCredentialsProvider") | ||
.createWithDefault(FlintOptions.DEFAULT_CUSTOM_AWS_CREDENTIALS_PROVIDER) | ||
|
||
val REPL_FLINT_ASSUME_SESSION_ROLE_ARN = | ||
FlintConfig("spark.repl.flint.ASSUME_ROLE_CREDENTIALS_ROLE_ARN") | ||
.datasourceOption() | ||
.doc("The role to use for writing state information to the session index. " + | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Could you update user manual as well? Btw, this doesn't seem to only apply to REPL. It's used by low level Flint client? Should we follow |
||
"This is used update and read job results or errors, independent of other write permissions for OpenSearch.") | ||
.createOptional() | ||
|
||
val DOC_ID_COLUMN_NAME = FlintConfig("spark.datasource.flint.write.id_name") | ||
.datasourceOption() | ||
.doc( | ||
|
@@ -230,7 +237,8 @@ case class FlintSparkConf(properties: JMap[String, String]) extends Serializable | |
DATA_SOURCE_NAME, | ||
SESSION_ID, | ||
REQUEST_INDEX, | ||
EXCLUDE_JOB_IDS) | ||
EXCLUDE_JOB_IDS, | ||
REPL_FLINT_ASSUME_SESSION_ROLE_ARN) | ||
.map(conf => (conf.optionKey, conf.readFrom(reader))) | ||
.flatMap { | ||
case (_, None) => None | ||
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
np: use the constant?