CodeBuildBasePolicy

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Sid": "VisualEditor0",
            "Effect": "Allow",
            "Action": [
                "s3:PutObject",
                "s3:GetObject",
                "logs:CreateLogStream",
                "s3:GetBucketAcl",
                "logs:PutLogEvents",
                "s3:GetBucketLocation",
                "s3:GetObjectVersion"
            ],
            "Resource": [
                "arn:aws:logs:us-west-2:673499572719:log-group:/aws/codebuild/playground-ops",
                "arn:aws:logs:us-west-2:673499572719:log-group:/aws/codebuild/playground-ops:*",
                "arn:aws:s3:::codepipeline-us-west-2-*"
            ]
        },
        {
            "Sid": "VisualEditor1",
            "Effect": "Allow",
            "Action": [
                "s3:PutAccountPublicAccessBlock",
                "s3:GetAccountPublicAccessBlock",
                "s3:ListAllMyBuckets",
                "ecr:*",
                "s3:HeadBucket"
            ],
            "Resource": "*"
        },
        {
            "Sid": "VisualEditor2",
            "Effect": "Allow",
            "Action": "s3:*",
            "Resource": "arn:aws:s3:::uplift-private-maven"
        },
        {
            "Sid": "VisualEditor3",
            "Effect": "Allow",
            "Action": "logs:CreateLogGroup",
            "Resource": [
                "arn:aws:logs:us-west-2:673499572719:log-group:/aws/codebuild/playground-ops",
                "arn:aws:logs:us-west-2:673499572719:log-group:/aws/codebuild/playground-ops:*"
            ]
        }
    ]
}