File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1049,7 +1049,7 @@ async function _fetchWebIdentityCredentials(r) {
1049
1049
if ( sts_regional === 'regional' ) {
1050
1050
var region = process . env [ 'AWS_REGION' ] ;
1051
1051
if ( region ) {
1052
- sts_endpoint = ' https://sts.' + region + ' .amazonaws.com' ;
1052
+ sts_endpoint = ` https://sts.${ region } .amazonaws.com` ;
1053
1053
} else {
1054
1054
throw 'Missing required AWS_REGION env variable' ;
1055
1055
}
@@ -1060,7 +1060,7 @@ async function _fetchWebIdentityCredentials(r) {
1060
1060
1061
1061
var token = fs . readFileSync ( process . env [ 'AWS_WEB_IDENTITY_TOKEN_FILE' ] ) ;
1062
1062
1063
- var params = " Version=2011-06-15&Action=AssumeRoleWithWebIdentity&RoleArn=" + arn + " &RoleSessionName=" + name + " &WebIdentityToken=" + token ;
1063
+ var params = ` Version=2011-06-15&Action=AssumeRoleWithWebIdentity&RoleArn=${ arn } &RoleSessionName=${ name } &WebIdentityToken=${ token } ` ;
1064
1064
1065
1065
var response = await ngx . fetch ( sts_endpoint + "?" + params , {
1066
1066
headers : {
You can’t perform that action at this time.
0 commit comments