Skip to content

Commit 0245292

Browse files
authored
Update aws.ts
1 parent 8559e4a commit 0245292

File tree

1 file changed

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

1 file changed

+1
-2
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,8 @@ import { config } from './config/config';
44
const c = config.dev;
55

66
//Configure AWS
7-
var credentials = new AWS.SharedIniFileCredentials({profile: c.aws_profile});
87
if(c.aws_profile !== "DEPLOYED") {
9-
var credentials = new AWS.SharedIniFileCredentials({profile: 'default'});
8+
var credentials = new AWS.SharedIniFileCredentials({profile: c.aws_profile});
109
}
1110
AWS.config.credentials = credentials;
1211

0 commit comments

Comments
 (0)