seahaven-org-baseline/lib/scp/external-dev-shoc-backend-deploy-trust.json

85 lines
2.9 KiB
JSON
Raw Normal View History

{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "ProtectOtherDeploymentPrincipalTrust",
"Effect": "Deny",
"Action": "iam:UpdateAssumeRolePolicy",
"NotResource": [
"arn:aws:iam::396287094661:role/githubdeploy-shoc-backend-dev",
"arn:aws:iam::396287094661:role/githubdeploy-shoc-backend-staging",
"arn:aws:iam::396287094661:role/githubdeploy-shoc-frontend-new-dev",
"arn:aws:iam::396287094661:role/githubdeploy-shoc-frontend-new-staging"
],
"Condition": {
"ArnNotLike": {
"aws:PrincipalArn": [
"arn:aws:iam::396287094661:role/OrganizationAccountAccessRole",
"arn:aws:iam::396287094661:role/cdk-hnb659fds-*"
]
}
}
},
{
"Sid": "ProtectShocBackendDevGithubTrust",
"Effect": "Deny",
"Action": "iam:UpdateAssumeRolePolicy",
"Resource": "arn:aws:iam::396287094661:role/githubdeploy-shoc-backend-dev",
"Condition": {
"ArnNotLike": {
"aws:PrincipalArn": [
"arn:aws:iam::396287094661:role/OrganizationAccountAccessRole",
"arn:aws:iam::396287094661:role/cdk-hnb659fds-*",
"arn:aws:iam::396287094661:role/hcptf-shoc-backend-dev"
]
}
}
},
{
"Sid": "ProtectShocBackendStagingGithubTrust",
"Effect": "Deny",
"Action": "iam:UpdateAssumeRolePolicy",
"Resource": "arn:aws:iam::396287094661:role/githubdeploy-shoc-backend-staging",
"Condition": {
"ArnNotLike": {
"aws:PrincipalArn": [
"arn:aws:iam::396287094661:role/OrganizationAccountAccessRole",
"arn:aws:iam::396287094661:role/cdk-hnb659fds-*",
"arn:aws:iam::396287094661:role/hcptf-shoc-backend-staging"
]
}
}
},
{
"Sid": "ProtectShocFrontendDevGithubTrust",
"Effect": "Deny",
"Action": "iam:UpdateAssumeRolePolicy",
"Resource": "arn:aws:iam::396287094661:role/githubdeploy-shoc-frontend-new-dev",
"Condition": {
"ArnNotLike": {
"aws:PrincipalArn": [
"arn:aws:iam::396287094661:role/OrganizationAccountAccessRole",
"arn:aws:iam::396287094661:role/cdk-hnb659fds-*",
"arn:aws:iam::396287094661:role/hcptf-shoc-frontend-new-dev"
]
}
}
},
{
"Sid": "ProtectShocFrontendStagingGithubTrust",
"Effect": "Deny",
"Action": "iam:UpdateAssumeRolePolicy",
"Resource": "arn:aws:iam::396287094661:role/githubdeploy-shoc-frontend-new-staging",
"Condition": {
"ArnNotLike": {
"aws:PrincipalArn": [
"arn:aws:iam::396287094661:role/OrganizationAccountAccessRole",
"arn:aws:iam::396287094661:role/cdk-hnb659fds-*",
"arn:aws:iam::396287094661:role/hcptf-shoc-frontend-new-staging"
]
}
}
}
]
}