Skip to content

Commit

Permalink
fix(s3): pass all config to sub-tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
loicmathieu committed Oct 24, 2024
1 parent 41b7e27 commit c996e7e
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/main/java/io/kestra/plugin/aws/s3/Copy.java
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,12 @@ public Output run(RunContext runContext) throws Exception {
.endpointOverride(this.endpointOverride)
.accessKeyId(this.accessKeyId)
.secretKeyId(this.secretKeyId)
.sessionToken(this.sessionToken)
.stsRoleSessionName(this.stsRoleSessionName)
.stsRoleExternalId(this.stsRoleExternalId)
.stsRoleSessionDuration(this.stsRoleSessionDuration)
.stsRoleArn(this.stsRoleArn)
.stsEndpointOverride(this.stsEndpointOverride)
.bucket(request.sourceBucket())
.key(request.sourceKey())
.build()
Expand Down
1 change: 1 addition & 0 deletions src/main/java/io/kestra/plugin/aws/s3/Downloads.java
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ public Output run(RunContext runContext) throws Exception {
.endpointOverride(this.endpointOverride)
.accessKeyId(this.accessKeyId)
.secretKeyId(this.secretKeyId)
.sessionToken(this.sessionToken)
.requestPayer(this.requestPayer)
.bucket(this.bucket)
.prefix(this.prefix)
Expand Down
7 changes: 7 additions & 0 deletions src/main/java/io/kestra/plugin/aws/s3/Trigger.java
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@ public Optional<Execution> evaluate(ConditionContext conditionContext, TriggerCo
.endpointOverride(this.endpointOverride)
.accessKeyId(this.accessKeyId)
.secretKeyId(this.secretKeyId)
.sessionToken(this.sessionToken)
.requestPayer(this.requestPayer)
.bucket(this.bucket)
.prefix(this.prefix)
Expand Down Expand Up @@ -194,6 +195,12 @@ public Optional<Execution> evaluate(ConditionContext conditionContext, TriggerCo
.endpointOverride(this.endpointOverride)
.accessKeyId(this.accessKeyId)
.secretKeyId(this.secretKeyId)
.sessionToken(this.sessionToken)
.stsRoleArn(this.stsRoleArn)
.stsRoleSessionName(this.stsRoleSessionName)
.stsRoleExternalId(this.stsRoleExternalId)
.stsRoleSessionDuration(this.stsRoleSessionDuration)
.stsEndpointOverride(this.stsEndpointOverride)
.requestPayer(this.requestPayer)
.bucket(this.bucket)
.key(object.getKey())
Expand Down

0 comments on commit c996e7e

Please sign in to comment.