Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AccessDenied! (attempting to send email on Lambda) #10

Closed
nelsonic opened this issue Feb 12, 2020 · 2 comments
Closed

AccessDenied! (attempting to send email on Lambda) #10

nelsonic opened this issue Feb 12, 2020 · 2 comments
Assignees
Labels

Comments

@nelsonic
Copy link
Member

Attempting to run the Lambda function on Lambda getting the following error:

{
  "errorType": "AccessDenied",
  "errorMessage": "User `arn:aws:sts::123456789:assumed-role/LambdaExecRole/aws-ses-lambda-v1' is not authorized to perform `ses:SendEmail' on resource `arn:aws:ses:eu-west-1:123456789:identity/[email protected]'",
  "trace": [
    "AccessDenied: User `arn:aws:sts::123456789:assumed-role/LambdaExecRole/aws-ses-lambda-v1' is not authorized to perform `ses:SendEmail' on resource `arn:aws:ses:eu-west-1:123456789:identity/[email protected]'",
    "    at Request.extractError (/var/task/node_modules/aws-sdk/lib/protocol/query.js:50:29)",
    "    at Request.callListeners (/var/task/node_modules/aws-sdk/lib/sequential_executor.js:106:20)",
    "    at Request.emit (/var/task/node_modules/aws-sdk/lib/sequential_executor.js:78:10)",
    "    at Request.emit (/var/task/node_modules/aws-sdk/lib/request.js:683:14)",
    "    at Request.transition (/var/task/node_modules/aws-sdk/lib/request.js:22:10)",
    "    at AcceptorStateMachine.runTo (/var/task/node_modules/aws-sdk/lib/state_machine.js:14:12)",
    "    at /var/task/node_modules/aws-sdk/lib/state_machine.js:26:10",
    "    at Request.<anonymous> (/var/task/node_modules/aws-sdk/lib/request.js:38:9)",
    "    at Request.<anonymous> (/var/task/node_modules/aws-sdk/lib/request.js:685:12)",
    "    at Request.callListeners (/var/task/node_modules/aws-sdk/lib/sequential_executor.js:116:18)"
  ]
}

Investigating now ... 🔍

@nelsonic nelsonic added this to To do in Nelson's List via automation Feb 12, 2020
@nelsonic nelsonic added this to To do in dwyl app via automation Feb 12, 2020
@nelsonic nelsonic moved this from To do to In progress in dwyl app Feb 12, 2020
@nelsonic nelsonic self-assigned this Feb 12, 2020
@nelsonic nelsonic added the T25m label Feb 12, 2020
@nelsonic
Copy link
Member Author

Turns out that the AWS related environment variables are not included in the .env file that gets exported ... so we need a better way of doing this ... >> dwyl/aws-lambda-deploy#58

@nelsonic
Copy link
Member Author

Sadly, the environment variable approach is not going to work because AWS blocks it!!
See: dwyl/aws-lambda-deploy#58 (comment)
GOTO: #11

Nelson's List automation moved this from To do to Done Feb 12, 2020
dwyl app automation moved this from In progress to Done Feb 12, 2020
@nelsonic nelsonic removed the BLOCKED label Feb 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Nelson's List
  
Done
dwyl app
  
Done
Development

No branches or pull requests

1 participant