Restrict read access to CodeCommit Repository

0

Hello,

I have 2 repositories[repo-1, repo-2] in my CodeCommit. And have 2 IAM groups[org-1, org-2], I want to create 2 IAM policies that will restrict read and write access for org-2 users in repo-1 and org-1 users in repo-2. I have successfully blocked the write access, now trying to block the read access, basically trying to implement two policies, where org-1 users won't be able to see repo-2 and vice versa. Can anyone please help me with this? Thanks in advance.

질문됨 일 년 전1344회 조회
1개 답변
1

Some good example CodeCommit IAM policies can be found here.

https://docs.amazonaws.cn/en_us/codecommit/latest/userguide/customer-managed-policies.html#identity-based-policies-example-2

You can build off the examples to get the behavior you are looking for.

Here is a link for more detail on how IAM policies work. https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies.html

profile pictureAWS
답변함 일 년 전
profile pictureAWS
전문가
검토됨 일 년 전

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

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

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

관련 콘텐츠