Title - How to Authenticate GitHub with AWS? | AWS IAM Role For GitHub Terraform
Description -
This video will show you how to create AWS IAM Role to authenticate GitHub with AWS.
#devops
#terraform
#aws
#githubactions
Please use the below policy -
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Principal": {
"Federated": "arn:aws:iam::**********:oidc-provider/token.actions.githubusercontent.com"
},
"Action": "sts:AssumeRoleWithWebIdentity",
"Condition": {
"ForAllValues:StringLike": {
"token.actions.githubusercontent.com:sub": "repo:*******/*:*",
"token.actions.githubusercontent.com:aud": "sts.amazonaws.com"
}
}
}
]
}
![](https://s2.save4k.ru/pic/FICk79_6AJI/maxresdefault.jpg)