Skip to content

Commit

Permalink
Merge pull request #330 from trocco-io/add_assume_role_authentication…
Browse files Browse the repository at this point in the history
…_for_redshift

Add assume role authentication for Redshift
  • Loading branch information
dmikurube authored Jan 12, 2024
2 parents 17aed6d + a7abea8 commit 6aba538
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
10 changes: 9 additions & 1 deletion embulk-output-redshift/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Redshift output plugin for Embulk loads records to Redshift.
- **transaction_isolation**: transaction isolation level for each connection ("read_uncommitted", "read_committed", "repeatable_read" or "serializable"). if not specified, database default value will be used.
- **access_key_id**: deprecated. `aws_access_key_id` should be used (see "basic" in `aws_auth_method`).
- **secret_access_key**: deprecated. `aws_secret_access_key` should be used (see "basic" in `aws_auth_method`).
- **aws_auth_method**: name of mechanism to authenticate requests ("basic", "env", "instance", "profile", "properties", "anonymous", "session" or "default". default: "basic")
- **aws_auth_method**: name of mechanism to authenticate requests ("basic", "env", "instance", "profile", "properties", "anonymous", "session", "assume_role" or "default". default: "basic")

- "basic": uses `access_key_id` and `secret_access_key` to authenticate.

Expand Down Expand Up @@ -63,6 +63,14 @@ Redshift output plugin for Embulk loads records to Redshift.
- **aws_session_token**: session token (string, required)
- "assume_role": uses temporary security credentials created by AssumeRole.
- **aws_account_id**: AWS account ID (string, required)
- **aws_role_name**: AWS role name (string, required)
- **aws_external_id**: External ID (string, required)
- "default": uses AWS SDK's default strategy to look up available credentials from runtime environment. This method behaves like the combination of the following methods.
1. "env"
Expand Down
2 changes: 1 addition & 1 deletion embulk-output-redshift/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ dependencies {
exclude group: "com.fasterxml.jackson.core", module: "jackson-databind"
exclude group: "com.fasterxml.jackson.core", module: "jackson-core"
}
implementation("org.embulk:embulk-util-aws-credentials:0.4.0") {
implementation("org.embulk:embulk-util-aws-credentials:0.4.2") {
exclude group: "org.slf4j", module: "slf4j-api"
}

Expand Down
4 changes: 2 additions & 2 deletions embulk-output-redshift/gradle.lockfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,15 @@ joda-time:joda-time:2.9.2=compileClasspath,runtimeClasspath
org.apache.httpcomponents:httpclient:4.5.5=compileClasspath,runtimeClasspath
org.apache.httpcomponents:httpcore:4.4.9=compileClasspath,runtimeClasspath
org.embulk:embulk-spi:0.10.49=compileClasspath
org.embulk:embulk-util-aws-credentials:0.4.0=compileClasspath,runtimeClasspath
org.embulk:embulk-util-aws-credentials:0.4.2=compileClasspath,runtimeClasspath
org.embulk:embulk-util-config:0.3.3=compileClasspath,runtimeClasspath
org.embulk:embulk-util-json:0.2.1=compileClasspath,runtimeClasspath
org.embulk:embulk-util-retryhelper:0.8.2=compileClasspath,runtimeClasspath
org.embulk:embulk-util-rubytime:0.3.3=compileClasspath,runtimeClasspath
org.embulk:embulk-util-timestamp:0.2.2=compileClasspath,runtimeClasspath
org.msgpack:msgpack-core:0.8.24=compileClasspath
org.postgresql:postgresql:9.4-1205-jdbc41=compileClasspath,runtimeClasspath
org.slf4j:jcl-over-slf4j:1.7.12=compileClasspath,runtimeClasspath
org.slf4j:jcl-over-slf4j:1.7.36=compileClasspath,runtimeClasspath
org.slf4j:slf4j-api:2.0.7=compileClasspath
software.amazon.ion:ion-java:1.0.2=compileClasspath,runtimeClasspath
empty=

0 comments on commit 6aba538

Please sign in to comment.