-
Notifications
You must be signed in to change notification settings - Fork 19
/
data.aws_iam_policy_document.pipeline.tf
107 lines (91 loc) · 2.05 KB
/
data.aws_iam_policy_document.pipeline.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
data "aws_iam_policy_document" "pipeline" {
# checkov:skip=CKV_AWS_107: Codepipeline not in prod
# checkov:skip=CKV_AWS_108
# checkov:skip=CKV_AWS_109
# checkov:skip=CKV_AWS_110
# checkov:skip=CKV_AWS_111
# checkov:skip=CKV_AWS_356:not in use in prod account
statement {
actions = [
"iam:PassRole"
]
resources = ["*"]
condition {
test = "StringEqualsIfExists"
variable = "iam:PassedToService"
values = [
"cloudformation.amazonaws.com",
"elasticbeanstalk.amazonaws.com",
"ec2.amazonaws.com",
"ecs-tasks.amazonaws.com"
]
}
}
statement {
actions = [
"codecommit:CancelUploadArchive",
"codecommit:GetBranch",
"codecommit:GetCommit",
"codecommit:GetUploadArchiveStatus",
"codecommit:UploadArchive",
"codecommit:GetBranch"
]
resources = ["*"]
}
statement {
actions = [
"codedeploy:CreateDeployment",
"codedeploy:GetApplication",
"codedeploy:GetApplicationRevision",
"codedeploy:GetDeployment",
"codedeploy:GetDeploymentConfig",
"codedeploy:RegisterApplicationRevision"
]
resources = ["*"]
}
statement {
actions = [
"elasticbeanstalk:*",
"ec2:*",
"elasticloadbalancing:*",
"autoscaling:*",
"cloudwatch:*",
"s3:*",
"sns:*",
"rds:*",
"sqs:*",
"ecs:*"
]
resources = ["*"]
}
statement {
actions = [
"lambda:InvokeFunction",
"lambda:ListFunctions"
]
resources = ["*"]
}
statement {
actions = [
"codebuild:BatchGetBuilds",
"codebuild:StartBuild"
]
resources = ["*"]
}
statement {
actions = [
"servicecatalog:ListProvisioningArtifacts",
"servicecatalog:CreateProvisioningArtifact",
"servicecatalog:DescribeProvisioningArtifact",
"servicecatalog:DeleteProvisioningArtifact",
"servicecatalog:UpdateProduct"
]
resources = ["*"]
}
statement {
actions = [
"ecr:DescribeImages"
]
resources = ["*"]
}
}