Skip to content

Commit a7abea8

Browse files
committed
Add assume role authentication for Redshift
1 parent d2145e3 commit a7abea8

File tree

3 files changed

+12
-4
lines changed

3 files changed

+12
-4
lines changed

Diff for: embulk-output-redshift/README.md

+9-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Redshift output plugin for Embulk loads records to Redshift.
2424
- **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.
2525
- **access_key_id**: deprecated. `aws_access_key_id` should be used (see "basic" in `aws_auth_method`).
2626
- **secret_access_key**: deprecated. `aws_secret_access_key` should be used (see "basic" in `aws_auth_method`).
27-
- **aws_auth_method**: name of mechanism to authenticate requests ("basic", "env", "instance", "profile", "properties", "anonymous", "session" or "default". default: "basic")
27+
- **aws_auth_method**: name of mechanism to authenticate requests ("basic", "env", "instance", "profile", "properties", "anonymous", "session", "assume_role" or "default". default: "basic")
2828

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

@@ -63,6 +63,14 @@ Redshift output plugin for Embulk loads records to Redshift.
6363
6464
- **aws_session_token**: session token (string, required)
6565
66+
- "assume_role": uses temporary security credentials created by AssumeRole.
67+
68+
- **aws_account_id**: AWS account ID (string, required)
69+
70+
- **aws_role_name**: AWS role name (string, required)
71+
72+
- **aws_external_id**: External ID (string, required)
73+
6674
- "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.
6775
6876
1. "env"

Diff for: embulk-output-redshift/build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ dependencies {
1515
exclude group: "com.fasterxml.jackson.core", module: "jackson-databind"
1616
exclude group: "com.fasterxml.jackson.core", module: "jackson-core"
1717
}
18-
implementation("org.embulk:embulk-util-aws-credentials:0.4.0") {
18+
implementation("org.embulk:embulk-util-aws-credentials:0.4.2") {
1919
exclude group: "org.slf4j", module: "slf4j-api"
2020
}
2121

Diff for: embulk-output-redshift/gradle.lockfile

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,15 @@ joda-time:joda-time:2.9.2=compileClasspath,runtimeClasspath
1818
org.apache.httpcomponents:httpclient:4.5.5=compileClasspath,runtimeClasspath
1919
org.apache.httpcomponents:httpcore:4.4.9=compileClasspath,runtimeClasspath
2020
org.embulk:embulk-spi:0.10.49=compileClasspath
21-
org.embulk:embulk-util-aws-credentials:0.4.0=compileClasspath,runtimeClasspath
21+
org.embulk:embulk-util-aws-credentials:0.4.2=compileClasspath,runtimeClasspath
2222
org.embulk:embulk-util-config:0.3.3=compileClasspath,runtimeClasspath
2323
org.embulk:embulk-util-json:0.2.1=compileClasspath,runtimeClasspath
2424
org.embulk:embulk-util-retryhelper:0.8.2=compileClasspath,runtimeClasspath
2525
org.embulk:embulk-util-rubytime:0.3.3=compileClasspath,runtimeClasspath
2626
org.embulk:embulk-util-timestamp:0.2.2=compileClasspath,runtimeClasspath
2727
org.msgpack:msgpack-core:0.8.24=compileClasspath
2828
org.postgresql:postgresql:9.4-1205-jdbc41=compileClasspath,runtimeClasspath
29-
org.slf4j:jcl-over-slf4j:1.7.12=compileClasspath,runtimeClasspath
29+
org.slf4j:jcl-over-slf4j:1.7.36=compileClasspath,runtimeClasspath
3030
org.slf4j:slf4j-api:2.0.7=compileClasspath
3131
software.amazon.ion:ion-java:1.0.2=compileClasspath,runtimeClasspath
3232
empty=

0 commit comments

Comments
 (0)