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).
gefragt vor einem Jahr485 Aufrufe
1 Antwort
2
Akzeptierte Antwort

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
beantwortet vor einem Jahr
profile picture
EXPERTE
überprüft vor 5 Tagen
profile picture
EXPERTE
überprüft vor 5 Monaten

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen