serverless / serverless/examples

Deploying graphql function results in error

Open
#456 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
11.5k
Forks
4.4k
Avg merge
2h 55m
Merged PRs (30d)
3

Description

When running serverless deploy function --function graphql after npm run deploy to update lambda function with recent changes I ended up with The role defined for the function cannot be assumed by Lambda.

Solution:

in examples/aws-node-graphql-and-rds/resource/LambdaRole.yml we need to add RoleName to fix that.
RoleName: serverlessLambdaIAMRole

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with examples/aws-node-graphql-and-rds/resource/LambdaRole.yml and reproduce the deployment using npm run deploy, followed by serverless deploy function --function graphql. Add the specified role name and confirm the GraphQL Lambda deployment no longer reports that its role cannot be assumed.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws, graphql, javascript
Domain
cloud
Issue type
Bug
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.