Skip to content

Commit 1900baf

Browse files
authored
Merge pull request #168 from drone-plugins/CI-14134-final
fix: [CI-14134]: fix cross account access
2 parents 9d80669 + 4529172 commit 1900baf

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

plugin.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -460,6 +460,11 @@ func (p *Plugin) createS3Client() *s3.S3 {
460460
log.Warn("AWS Key and/or Secret not provided (falling back to ec2 instance profile)")
461461
}
462462

463+
sess, err = session.NewSession(conf)
464+
if err != nil {
465+
log.Fatalf("failed to create AWS session: %v", err)
466+
}
467+
463468
client := s3.New(sess, conf)
464469

465470
if len(p.UserRoleArn) > 0 {

0 commit comments

Comments
 (0)