Skip to content

Commit 05bbb61

Browse files
authored
The aws_profile can be "DEPLOYED" during the deployment
1 parent 8262e68 commit 05bbb61

File tree

1 file changed

+1
-1
lines changed
  • course-02/exercises/udacity-c2-restapi/src

1 file changed

+1
-1
lines changed

course-02/exercises/udacity-c2-restapi/src/aws.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ const c = config.dev;
66
//Configure AWS
77
if(c.aws_profile !== "DEPLOYED") {
88
var credentials = new AWS.SharedIniFileCredentials({profile: c.aws_profile});
9+
AWS.config.credentials = credentials;
910
}
10-
AWS.config.credentials = credentials;
1111

1212
export const s3 = new AWS.S3({
1313
signatureVersion: 'v4',

0 commit comments

Comments
 (0)