Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion aws-janitor/resources/instance.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ func (Instances) MarkAndSweep(opts Options, set *Set) error {
Filters: []ec2types.Filter{
{
Name: aws2.String("instance-state-name"),
Values: []string{"running", "pending"},
Values: []string{"running", "pending", "stopped"},
},
},
}
Expand Down
5 changes: 5 additions & 0 deletions infra/infra.go
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,11 @@ func NewAwsJanitorStack(scope constructs.Construct, id string, props *AwsJanitor
jsii.String("ec2:DisassociateAddress"),
jsii.String("ec2:ReleaseAddress"),
jsii.String("ec2:TerminateInstances"),
jsii.String("ec2:RevokeSecurityGroupIngress"),
jsii.String("ec2:RevokeSecurityGroupEgress"),
jsii.String("ec2:DetachInternetGateway"),
jsii.String("ec2:AssociateDhcpOptions"),
jsii.String("ec2:DisassociateRouteTable"),

// ELB permissions
jsii.String("elasticloadbalancing:Describe*"),
Expand Down
Loading