This repository was archived by the owner on Oct 18, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -10,10 +10,10 @@ const assumeRole = async config => {
10
10
const AWS = require ( 'aws-sdk' ) ; // eslint-disable-line global-require
11
11
AWS . config . region = config . provider . region ;
12
12
const sts = new AWS . STS ( { apiVersion : '2011-06-15' } ) ;
13
- console . log ( `Attempting to assume AWS role ${ config . provider . role } ` ) ;
13
+ console . log ( `Attempting to assume AWS role ${ config . provider . iam . role } ` ) ;
14
14
return sts
15
15
. assumeRole ( {
16
- RoleArn : config . provider . role ,
16
+ RoleArn : config . provider . iam . role ,
17
17
RoleSessionName : `${ config . provider . service } -${
18
18
process . env . USER || 'unknown'
19
19
} -${ Date . now ( ) } `,
@@ -26,11 +26,11 @@ const assumeRole = async config => {
26
26
sessionToken : data . Credentials . SessionToken ,
27
27
} ) ;
28
28
console . log (
29
- `Assumed AWS role ${ config . provider . role } successfully` ,
29
+ `Assumed AWS role ${ config . provider . iam . role } successfully` ,
30
30
) ;
31
31
} )
32
32
. catch ( err => {
33
- console . error ( `Failed to assume ${ config . provider . role } ` , err ) ;
33
+ console . error ( `Failed to assume ${ config . provider . iam . role } ` , err ) ;
34
34
throw err ;
35
35
} ) ;
36
36
} ;
You can’t perform that action at this time.
0 commit comments