This repository has been archived by the owner on Feb 28, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstack_iam_deployment_role.json
119 lines (119 loc) · 4.16 KB
/
stack_iam_deployment_role.json
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
108
109
110
111
112
113
114
115
116
117
118
119
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "ECRandAppRunner",
"Effect": "Allow",
"Action": [
"ecr:PutLifecyclePolicy",
"ecr:PutImageTagMutability",
"apprunner:DeleteAutoScalingConfiguration",
"ecr:StartImageScan",
"apprunner:DeleteService",
"ecr:CreateRepository",
"ecr:PutImageScanningConfiguration",
"ecr:UploadLayerPart",
"ecr:BatchDeleteImage",
"ecr:DeleteLifecyclePolicy",
"apprunner:UpdateService",
"ecr:DeleteRepository",
"ecr:PutImage",
"apprunner:CreateService",
"apprunner:CreateAutoScalingConfiguration",
"apprunner:UntagResource",
"apprunner:DescribeService",
"ecr:CompleteLayerUpload",
"apprunner:DescribeAutoScalingConfiguration",
"ecr:StartLifecyclePolicyPreview",
"ecr:InitiateLayerUpload",
"ecr:DeleteRepositoryPolicy",
"ecr:BatchCheckLayerAvailability",
"apprunner:TagResource"
],
"Resource": [
"arn:aws:ecr:${AWSRegion}:${AWSAccountId}:repository/aws-app-runner",
"arn:aws:apprunner:*:${AWSAccountId}:autoscalingconfiguration/*/*/*",
"arn:aws:apprunner:${AWSRegion}:${AWSAccountId}:service/aws-app-runner-example/*",
"arn:aws:apprunner:*:${AWSAccountId}:connection/*/*"
]
},
{
"Sid": "ECRAuth",
"Effect": "Allow",
"Action": "ecr:GetAuthorizationToken",
"Resource": "*"
},
{
"Sid": "CloudFormation",
"Effect": "Allow",
"Action": [
"cloudformation:DescribeStackEvents",
"cloudformation:CreateStack",
"cloudformation:TagResource",
"cloudformation:CreateChangeSet",
"cloudformation:DescribeChangeSet",
"cloudformation:ExecuteChangeSet",
"cloudformation:GetTemplateSummary",
"cloudformation:DescribeStacks",
"cloudformation:DeleteChangeSet"
],
"Resource": [
"arn:aws:cloudformation:*:${AWSAccountId}:stackset/*:*",
"arn:aws:cloudformation:*:${AWSAccountId}:stack/aws-app-runner-example/*"
]
},
{
"Sid": "IAM",
"Effect": "Allow",
"Action": [
"iam:GetRole",
"iam:UpdateAssumeRolePolicy",
"iam:PassRole",
"iam:DetachRolePolicy",
"iam:DeleteRolePolicy",
"iam:TagRole",
"iam:CreateRole",
"iam:DeleteRole",
"iam:AttachRolePolicy",
"iam:PutRolePolicy",
"iam:GetRolePolicy",
"iam:CreateServiceLinkedRole"
],
"Resource": "arn:aws:iam::${AWSAccountId}:role/aws-app-runner-example-ECRAccessRole-*"
},
{
"Effect": "Allow",
"Action": "iam:CreateServiceLinkedRole",
"Resource": "arn:aws:iam::*:role/aws-service-role/apprunner.amazonaws.com/AWSServiceRoleForAppRunner",
"Condition": {
"StringLike": {
"iam:AWSServiceName": "apprunner.amazonaws.com"
}
}
},
{
"Effect": "Allow",
"Action": "iam:PassRole",
"Resource": "*",
"Condition": {
"StringLike": {
"iam:PassedToService": "apprunner.amazonaws.com"
}
}
},
{
"Effect": "Allow",
"Action": [
"kms:DescribeKey",
"kms:CreateGrant"
],
"Resource": "*"
},
{
"Sid": "AppRunnerAdminAccess",
"Effect": "Allow",
"Action": "apprunner:*",
"Resource": "*"
}
]
}