serverless / serverless/examples
Deploying graphql function results in error
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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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