Created
February 9, 2024 07:06
-
-
Save Yamini-crypto/3dac2490547bedec04ff2f0ce46bc72b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
aws iam create-role \ | |
--role-name secret-iam-role \ | |
--assume-role-policy-document '{ | |
"Version": "2012-10-17", | |
"Statement": [ | |
{ | |
"Effect": "Allow", | |
"Principal": { | |
"Federated": "arn:aws:iam::214346732473:oidc-provider/oidc.eks.ap-south-1.amazonaws.com/id/DF4D69408C9DE705" | |
}, | |
"Action": "sts:AssumeRoleWithWebIdentity", | |
"Condition": { | |
"StringLike": { | |
"oidc.eks.ap-south-1.amazonaws.com/id/DF4D69408C9DE7050D36A:aud": "sts.amazonaws.com", | |
"oidc.eks.ap-south-1.amazonaws.com/id/DF4D69408C9DE7050D36A:sub": "system:serviceaccount:external-secrets:external-secrets-sa" | |
} | |
} | |
} | |
] | |
}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment