I want to allow all github org in aws iam role trusted entity (OIDC)

0

I want to create OIDC auth with aws. While creating role i have to enter github org in in aws iam role trusted entity. I do not have github org to enter so i want to allow all github org. So how can i do this?

Enter image description here

Divya42
已提問 2 個月前檢視次數 96 次
1 個回答
2

AWS does not provide the capability to assume a role from ANY GitHub organization. Even if you create a trusted policy like this:

{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Effect": "Allow",
            "Principal": {
                "Federated": "arn:aws:iam::50********80:oidc-provider/token.actions.githubusercontent.com"
            },
            "Action": "sts:AssumeRoleWithWebIdentity",
            "Condition": {
                "StringEquals": {
                    "token.actions.githubusercontent.com:sub": "repo:*",
                    "token.actions.githubusercontent.com:aud": "sts.amazonaws.com"
                }
            }
        }
    ]
}

GitHub workflow will not be able to assume such a role.

You can create a Free GitHub organization and use it

Enter image description here Enter image description here Enter image description here

profile picture
專家
已回答 2 個月前
profile picture
專家
Artem
已審閱 2 個月前

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

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

回答問題指南