Skip to content
This repository was archived by the owner on Mar 4, 2025. It is now read-only.

Commit 8f3f01a

Browse files
author
Parth Shah
committedApr 22, 2016
rolename fix
1 parent c5bae88 commit 8f3f01a

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed
 

‎index.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,12 @@ module.exports = function(gulp) {
3636
gulp.task('upload', function(callback) {
3737
var packageDefinition = require(path.join(process.cwd(), './package.json'))
3838
var lambdaConfig = packageDefinition.lambda;
39-
console.log('arn:aws:iam::' + process.env.AWS_ACCOUNT_ID + ':role/' + (packageDefinition.lambda.role || 'aws-lambda-default'))
4039
// set defaults
4140
_.defaultsDeep(lambdaConfig, {
4241
region: 'us-east-1',
4342
handler: 'index.handler',
4443
description: "",
45-
role: 'arn:aws:iam::' + process.env.AWS_ACCOUNT_ID + ':role/' + (packageDefinition.lambda.role || 'aws-lambda-default'),
44+
role: 'arn:aws:iam::' + process.env.AWS_ACCOUNT_ID + ':role/' + (packageDefinition.lambda.roleName || 'aws-lambda-default'),
4645
timeout: 180,
4746
memorySize: 512
4847
});

‎package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "tc-lambda-gulp-tasks",
3-
"version": "1.1.1",
3+
"version": "1.1.2",
44
"description": "Topcoder Gulp tasks to deploy AWS lambdas",
55
"main": "index.js",
66
"repository": {

0 commit comments

Comments
 (0)