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.

Why are AuthRole and UnauthRole required for hosting?

See original GitHub issue

** Which Category is your question related to? ** init and hosting

** What AWS Services are you utilizing? ** s3 and cloudfront

** Provide additional details e.g. code snippets **

I’d like to use AWS Amplify only for hosting (at least for now) and would like to avoid unnecessary extra resources getting created. I noticed that the generated cloudformation templates and the config files generated by init refer to AuthRole and UnauthRole, which refer to Cognito, which I’m not using. I attempted to remove them manually from the cloudformation file, but when running amplify publish, they get re-created. Is there a good way to remove them entirely, or a particular reason why they’re needed? Thanks!

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
miguel258commented, Aug 26, 2020

Hi guys im using only API module of Amplify, but the process create this roles, UnauthRole and authRole, i explored this roles and they dont have any policy attached… this is normal? If i add other service as Auth with cognito this files change?

Thanks!!

1reaction
ncknunacommented, Mar 7, 2019

@UnleashedMind Thanks for the quick reply! In that case, can this ticket turn into a feature request to only create those roles when adding a category that requires them?

Read more comments on GitHub >

github_iconTop Results From Across the Web

IAM roles - Amazon Cognito - AWS Documentation
The following access policy allows an identity to use the PutRecord operation with any of the Kinesis Data Streams. It can be applied...
Read more >
Override Amplify-generated project-level IAM roles
unauthRole, The IAM role for authenticated or guest access to your app backend ... For example, use amplify override project to further modify...
Read more >
AWS Amplify: The Ultimate Bootstrapper (Part 1) - sufle.io
After installation, we need to configure Amplify CLI: amplify configure ... And two new roles in IAM, called authRole and unauthRole :.
Read more >
Quickstart
If your manually-configured Lambda Triggers require enhanced permissions, ... The Amplify CLI supports basic web application hosting with Amazon S3 and ...
Read more >
AWS Amplify - Joi Polloi
We've recently used AWS Amplify to build and host an interactive map ... Unauth role, and of course, authenticated users get the Auth...
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