I'm using the Codestar Node.JS Expressjs quick start template. So far I have it to where I can send an HTTP request to the endpoint, and have it write to a DynamoDB database that I created.
Unfortunately, this can only work if I go through the below process; otherwise I get a permission denied error:
- Commit some code, wait for it to re-build/re-deploy
- Go into the IAM role for the Lambda function in AWS console web UI
- Manually add the access permission for my DynamoDB table resource, save, and re-deploy through Codestar
Then, if I commit more code, the modifications I made to the IAM role get overwritten.
I'm guessing this is because those IAM rules get re-generated on each build, but I wasn't able to find anywhere that I can add the resource to make it persist between builds.