AWS scripts for celery

This commit is contained in:
Martyn Inglis
2016-02-17 11:36:14 +00:00
parent e59e66fa21
commit 58ae041b64
2 changed files with 12 additions and 7 deletions

View File

@@ -1,12 +1,5 @@
#!/usr/bin/env python
from app import notify_celery, create_app
from credstash import getAllSecrets
import os
# on aws get secrets and export to env
secrets = getAllSecrets(region="eu-west-1")
for key, val in secrets.items():
os.environ[key] = val
application = create_app()
application.app_context().push()