Skip to content

Instantly share code, notes, and snippets.

@QuingKhaos
Last active May 5, 2017 11:34
Show Gist options
  • Save QuingKhaos/28f980f86dc954450004b4c808a2dda9 to your computer and use it in GitHub Desktop.
Save QuingKhaos/28f980f86dc954450004b4c808a2dda9 to your computer and use it in GitHub Desktop.
AWS TerraformInit policy with OneLogin
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"iam:CreateAccountAlias",
"iam:ListAccountAliases",
"iam:DeleteAccountAlias"
],
"Resource": [
"*"
]
},
{
"Effect": "Allow",
"Action": [
"iam:CreateSAMLProvider",
"iam:GetSAMLProvider",
"iam:UpdateSAMLProvider"
],
"Resource": [
"arn:aws:iam::ACCOUNTID:saml-provider/OneLogin"
]
},
{
"Effect": "Allow",
"Action": [
"iam:CreateRole",
"iam:GetRole",
"iam:UpdateAssumeRolePolicy",
"iam:AttachRolePolicy",
"iam:ListAttachedRolePolicies",
"iam:DetachRolePolicy"
],
"Resource": [
"arn:aws:iam::ACCOUNTID:role/OneLogin",
"arn:aws:iam::ACCOUNTID:role/Administrator",
"arn:aws:iam::ACCOUNTID:role/Developer",
"arn:aws:iam::ACCOUNTID:role/Billing"
]
},
{
"Effect": "Allow",
"Action": [
"iam:CreatePolicy",
"iam:GetPolicy",
"iam:GetPolicyVersion"
],
"Resource": [
"arn:aws:iam::ACCOUNTID:policy/OneLoginExternalRole"
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment