Skip to content

Commit

Permalink
Fix local lambda parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
kdid committed Aug 24, 2023
1 parent 8fb73f5 commit 50b2807
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bin/start-with-step
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

sam local start-lambda --host 0.0.0.0 --log-file lambda.log & lambda_pid=$!
sam local start-lambda --host 0.0.0.0 --env-vars env.json --log-file lambda.log & lambda_pid=$!
sam local start-api --host 0.0.0.0 --log-file dc-api.log & api_pid=$!
docker run --rm -p 8083:8083 -e LAMBDA_ENDPOINT=http://172.17.0.1:3001/ amazon/aws-stepfunctions-local
kill $api_pid $lambda_pid
2 changes: 1 addition & 1 deletion src/handlers/media-transcode.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const AWS = require("aws-sdk");

function template(fileInput) {
const jobQueueArn = process.env.MEDIA_CONVERT_JOB_QUEUE_ARN;
const iamRoleArn = process.env.MEDIA_CONVERT_IAM_ROLE_ARN;
const iamRoleArn = process.env.MEDIA_CONVERT_ROLE_ARN;
const destination = `s3://${process.env.MEDIA_CONVERT_DESTINATION_BUCKET}/test`

return {
Expand Down

0 comments on commit 50b2807

Please sign in to comment.