question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Where do I add permissions when using amplify-cli?

See original GitHub issue

** Which Category is your question related to? ** API/Function

** What AWS Services are you utilizing? ** Lambda/DynamoDB

** Provide additional details e.g. code snippets ** I have a lambda that gathers data from DynamoDB that i created using the cli.

When I execute it, I get a permission error:

User: blah is not authorized to perform: dynamodb:DescribeTable

This is easy enough to fix, I added the DynamoDB permissions required through the console but this feels bad. I could edit the cloudformation template, adding the permissions there before pushing the changes up. But the template is generated, that also feels bad.

Any idea where I should be doing this? I can’t find any documentation around it.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
kaustavghosh06commented, Mar 12, 2019

@gregevari What do you mean by if push changes? I don’t beleive this file is changed dynamically by the CLI after it’s created.

0reactions
github-actions[bot]commented, May 27, 2021

This issue has been automatically locked since there hasn’t been any recent activity after it was closed. Please open a new issue for related bugs.

Looking for a help forum? We recommend joining the Amplify Community Discord server *-help channels for those types of questions.

Read more comments on GitHub >

github_iconTop Results From Across the Web

IAM Permissions Boundary for Amplify-generated roles
To set the maximum permissions that can be granted to IAM Roles created by Amplify CLI, configure a Permissions Boundary for the project....
Read more >
Adding a service role - AWS Amplify Hosting
If you already have an existing app, you can find the service role setting in App settings > General and then choose Edit...
Read more >
How to add Permissions to Lambda Function while using ...
I was able to edit the lambda locally to a certain degree: adding layer, environment variable etc using amplify update function .
Read more >
Amplify Guest Users - How to give limited access to ... - YouTube
0:00 Intro 3:29 Updating Amplify Auth with CLI 7:09 Creating Un-Auth IAM role 12:54 Updating the Code to work with IAM 15:09 Allowing...
Read more >
Lambda Triggers & Read-Only Permissions with AWS Amplify
Currently, the only way- Amplify lets you declare different permissions for users is by using static groups in Cognito and using attributes on...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found