Skip to content

Commit

Permalink
Fix rebase
Browse files Browse the repository at this point in the history
Signed-off-by: Alina Buzachis <[email protected]>
  • Loading branch information
alinabuzachis committed Feb 3, 2023
1 parent 29e9112 commit eff6b5b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 20 deletions.
16 changes: 0 additions & 16 deletions aws/policy/compute.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -115,13 +115,6 @@ Statement:
- elasticloadbalancing:ModifyTargetGroupAttributes
- elasticloadbalancing:ModifyRule
- elasticloadbalancing:SetIpAddressType
- ecs:Describe*
- ecs:List*
- ecs:TagResource
- ecs:UntagResource
- ecs:PutAccountSetting
- ecs:RegisterTaskDefinition
- ecs:DeregisterTaskDefinition
Resource:
- "*"

Expand All @@ -132,19 +125,10 @@ Statement:
- ec2:CreateVolume
- elasticloadbalancing:CreateLoadBalancer
- elasticloadbalancing:CreateRule
- ecs:RunTask
- ecs:StartTask
- ecs:StopTask
- ecs:DeleteCluster
- ecs:CreateService
- ecs:DeleteService
- ecs:UpdateService
- ecs:UpdateCluster
Resource:
- 'arn:aws:ec2:{{ aws_region }}:{{ aws_account_id }}:volume/*'
- 'arn:aws:elasticloadbalancing:{{ aws_region }}:{{ aws_account_id }}:*'
- 'arn:aws:autoscaling:{{ aws_region }}:{{ aws_account_id }}:autoScalingGroup*'
- 'arn:aws:ecs:{{ aws_region }}:{{ aws_account_id }}:*'

- Sid: AllowGlobalResourceRestrictedActionsWhichIncurNoFees
Effect: Allow
Expand Down
6 changes: 2 additions & 4 deletions aws/terminator/paas.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
<<<<<<< HEAD
from datetime import datetime
=======
import datetime
>>>>>>> ba35199 (Move ecs policies and terminator classes into paas files)

from . import DbTerminator, Terminator

Expand Down Expand Up @@ -121,6 +117,8 @@ def terminate(self):
else:
# delete streaming distribution
self.client.delete_streaming_distribution(Id=self.Id, IfMatch=ETag)


class Ecs(DbTerminator):
@property
def age_limit(self):
Expand Down

0 comments on commit eff6b5b

Please sign in to comment.