Skip to content

Commit

Permalink
Added the missed policy in tagging (#688)
Browse files Browse the repository at this point in the history
  • Loading branch information
athiruma authored Oct 19, 2023
1 parent e3b3bcb commit 23618de
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ def _update_resource_tags(self, resource_id: str, left_out_days: int, tags: list
self._s3_client.put_bucket_tagging(Bucket=resource_id, Tagging={'TagSet': tags})
elif self._policy == 'empty_roles':
self._iam_client.tag_role(RoleName=resource_id, Tags=tags)
elif self._policy in ('ip_unattached', 'unused_nat_gateway', 'zombie_snapshots'):
elif self._policy in ('ip_unattached', 'unused_nat_gateway', 'zombie_snapshots', 'ebs_unattached'):
self._ec2_client.create_tags(Resources=[resource_id], Tags=tags)
except Exception as err:
logger.info(f'Exception raised: {err}: {resource_id}')
Expand Down

0 comments on commit 23618de

Please sign in to comment.