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).
질문됨 일 년 전485회 조회
1개 답변
2
수락된 답변

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
답변함 일 년 전
profile picture
전문가
검토됨 5일 전
profile picture
전문가
검토됨 5달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠