How to use password access restriction for all new branches on Amplify?

0

In AWS Amplify, I'd like to restrict access with a password by default, and have a few branches publicly available.

In AWS Amplify console > Access control, I can:

  • apply a global password (but it's for ALL branches, and I want my production website to be publicly available)
  • or set a password restriction on selected branches (but in that case, all new branches or pull request previews are publicly available until they're manually protected).
preguntada hace un año482 visualizaciones
1 Respuesta
2
Respuesta aceptada

Yes, you can apply access control using password for new branches in AWS Amplify Console .

To do so, you need to follow these steps:

  • In the Amplify console, choose the app you want to set a password .
  • In the navigation pane, choose App settings and then select Access control .
  • Select Manage access in the Access control settings section .
  • In the Access control settings, set the username and password to restrict access to the desired branch from a GitHub repo.
  • Choose Save changes.

After that, users will be prompted for a username and password when they attempt to access the URL for the branch.

I hope this helps you with your query.😊 Unfortunately, you cannot set password protection by default on selected branches without manually protecting them or add a global password protection control to all branches. You can raise a request for it on GitHub here: https://github.com/aws-amplify. Feel free to join the OS Contributor Community for Amplify as well here: https://www.contributetoamplify.com/

: https://terieyenike.hashnode.dev/how-to-password-protect-websites-with-amplify-console : https://docs.aws.amazon.com/amplify/latest/userguide/access-control.html : https://dev.to/aws-builders/how-to-password-protect-websites-with-amplify-console-1dd6

profile pictureAWS
respondido hace un año
profile picture
EXPERTO
revisado hace 5 días
profile picture
EXPERTO
revisado hace 5 meses

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas