Skip to content

Commit

Permalink
skip account deletion on aws
Browse files Browse the repository at this point in the history
  • Loading branch information
KlemenSpruk committed Oct 17, 2023
1 parent f5c2676 commit b6e4d9d
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions django_project_base/aws/ses.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,17 @@ def list_verified_sender_emails() -> List[str]:
@staticmethod
def remove_sender_email(email: str):
if email in AwsSes.list_sender_emails():
assert (
AwsSes.client.delete_identity(
Identity=email,
)[
"ResponseMetadata"
]["HTTPStatusCode"]
== status.HTTP_200_OK
)
# TODO: EACH DEPLOYMENT SHOULD HAVE ITS OWN AWS ACCOUNT FOR THIS TO BE ENABLED
# TODO: ALSO DEV MACHINES SHOULD HAVE ITS OWN ACCOUNT
pass
# assert (
# AwsSes.client.delete_identity(
# Identity=email,
# )[
# "ResponseMetadata"
# ]["HTTPStatusCode"]
# == status.HTTP_200_OK
# )

@staticmethod
def add_sender_email(email: str):
Expand Down

0 comments on commit b6e4d9d

Please sign in to comment.