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:
- Created 5 years ago
- Reactions:1
- Comments:8 (3 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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!!
@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?