File tree Expand file tree Collapse file tree 3 files changed +19
-9
lines changed Expand file tree Collapse file tree 3 files changed +19
-9
lines changed Original file line number Diff line number Diff line change 1
1
name : Deploy
2
2
3
3
on :
4
- push :
5
- branches :
6
- - ' blue-green-deploy'
4
+ # push:
5
+ # branches:
6
+ # - 'blue-green-deploy'
7
7
workflow_dispatch :
8
8
9
9
permissions :
Original file line number Diff line number Diff line change 1
1
name : Init
2
2
3
3
on :
4
- # push:
5
- # branches:
6
- # - 'blue-green-deploy'
4
+ push :
5
+ branches :
6
+ - ' blue-green-deploy'
7
7
workflow_dispatch :
8
8
9
9
permissions :
Original file line number Diff line number Diff line change @@ -18,11 +18,21 @@ data "aws_iam_policy_document" "codedeploy_assume_role_policy" {
18
18
data "aws_iam_policy_document" "codedeploy_policy" {
19
19
statement {
20
20
actions = [
21
+ " ecs:CreateTaskSet" ,
21
22
" ecs:UpdateService" ,
22
23
" ecs:DescribeServices" ,
23
- " elasticloadbalancing:*" ,
24
- " autoscaling:*" ,
25
- " codedeploy:*"
24
+ " ecs:DeleteTaskSet" ,
25
+ " ecs:DescribeTaskSets" ,
26
+ " ecs:UpdateTaskSet" ,
27
+ " elasticloadbalancing:ModifyListener" ,
28
+ " elasticloadbalancing:ModifyTargetGroup" ,
29
+ " elasticloadbalancing:DeregisterTargets" ,
30
+ " elasticloadbalancing:RegisterTargets" ,
31
+ " autoscaling:DescribeAutoScalingGroups" ,
32
+ " autoscaling:UpdateAutoScalingGroup" ,
33
+ " codedeploy:CreateDeployment" ,
34
+ " codedeploy:GetDeployment" ,
35
+ " codedeploy:StopDeployment"
26
36
]
27
37
effect = " Allow"
28
38
resources = [" *" ]
You can’t perform that action at this time.
0 commit comments