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.

已提問 1 年前檢視次數 1400 次
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
已回答 1 年前
profile pictureAWS
專家
已審閱 1 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南