Skip to content

Commit f54d223

Browse files
committed
codedeploy iams
1 parent 0c1dc95 commit f54d223

File tree

3 files changed

+19
-9
lines changed

3 files changed

+19
-9
lines changed

.github/workflows/deploy.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
name: Deploy
22

33
on:
4-
push:
5-
branches:
6-
- 'blue-green-deploy'
4+
# push:
5+
# branches:
6+
# - 'blue-green-deploy'
77
workflow_dispatch:
88

99
permissions:

.github/workflows/init.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
name: Init
22

33
on:
4-
# push:
5-
# branches:
6-
# - 'blue-green-deploy'
4+
push:
5+
branches:
6+
- 'blue-green-deploy'
77
workflow_dispatch:
88

99
permissions:

tf/service/deploy/data.tf

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,21 @@ data "aws_iam_policy_document" "codedeploy_assume_role_policy" {
1818
data "aws_iam_policy_document" "codedeploy_policy" {
1919
statement {
2020
actions = [
21+
"ecs:CreateTaskSet",
2122
"ecs:UpdateService",
2223
"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"
2636
]
2737
effect = "Allow"
2838
resources = ["*"]

0 commit comments

Comments
 (0)