mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-05 10:42:41 -05:00
initial
This commit is contained in:
@@ -841,3 +841,14 @@ def promote_user_to_platform_admin(user_email_address):
|
||||
user.platform_admin = True
|
||||
db.session.add(user)
|
||||
db.session.commit()
|
||||
|
||||
|
||||
@notify_command(name="purge-csv-bucket")
|
||||
def purge_csv_bucket():
|
||||
bucket_name = getenv("CSV_BUCKEY_NAME")
|
||||
access_key = getenv("CSV_AWS_ACCESS_KEY_ID")
|
||||
secret = getenv("CSV_AWS_SECRET_ACCESS_KEY")
|
||||
region = getenv("CSV_AWS_REGION")
|
||||
print("ABOUT TO RUN PURGE CSV BUCKET")
|
||||
s3.purge_bucket(bucket_name, access_key, secret, region)
|
||||
print("RAN PURGE CSV BUCKET")
|
||||
|
||||
Reference in New Issue
Block a user