|
| 1 | +Here are the files/vars required to get the ecs deployment script to work. |
| 2 | +Some may actually be optional, but these are what I use to deploy Security monkey. |
| 3 | + |
| 4 | +`secmonkey.local.env` |
| 5 | +```bash |
| 6 | +# These point to RDS for me, but you can point them wherever |
| 7 | +SECURITY_MONKEY_POSTGRES_USER= |
| 8 | +SECURITY_MONKEY_POSTGRES_HOST= |
| 9 | +SECURITY_MONKEY_POSTGRES_PASSWORD= |
| 10 | +SECURITY_MONKEY_ACTIVE_PROVIDERS=onelogin |
| 11 | + |
| 12 | +SECURITY_MONKEY_SETTINGS=/usr/local/src/security_monkey/env-config/config-docker.py |
| 13 | +SECURITY_MONKEY_FQDN= |
| 14 | +SESSION_COOKIE_SECURE=True |
| 15 | + |
| 16 | +# These configure Onelogin (or Okta) |
| 17 | +SECURITY_MONKEY_ONELOGIN_EMAIL_FIELD=email |
| 18 | +SECURITY_MONKEY_ONELOGIN_USE_CUSTOM=True |
| 19 | +SECURITY_MONKEY_ONELOGIN_ENTITY_ID= |
| 20 | +SECURITY_MONKEY_ONELOGIN_SSO_URL= |
| 21 | +SECURITY_MONKEY_ONELOGIN_SLO_URL= |
| 22 | +SECURITY_MONKEY_ONELOGIN_IDP_CERT= |
| 23 | + |
| 24 | +SECURITY_MONKEY_REDIS_HOST= |
| 25 | + |
| 26 | +# These are the ARNs for the ECR images |
| 27 | +SECURITY_MONKEY_ECS_IMAGE= |
| 28 | +SECURITY_MONKEY_ECS_NGINX_IMAGE= |
| 29 | + |
| 30 | +# The ECS IAM Roles to be assumed by each process |
| 31 | +SECURITY_MONKEY_ECS_WORKER_ROLE= |
| 32 | +SECURITY_MONKEY_ECS_SCHEDULER_ROLE= |
| 33 | +SECURITY_MONKEY_ECS_FRONT_ROLE= |
| 34 | + |
| 35 | +SECURITY_MONKEY_ECS_AWSLOGS_GROUP=secmonkey |
| 36 | + |
| 37 | +SECURITY_MONKEY_CELERY_WORKER_COUNT=5 |
| 38 | + |
| 39 | +SECURITY_MONKEY_SECRET_KEY= |
| 40 | +SECURITY_MONKEY_SECURITY_PASSWORD_SALT= |
| 41 | + |
| 42 | +# On our install, secmonkey needs _a lot_ of RAM. You may be fine with less. |
| 43 | +SECURITY_MONKEY_WORKER_MEMORY=4096m |
| 44 | + |
| 45 | +SM_CONSOLE_LOG_LEVEL=INFO |
| 46 | + |
| 47 | +SECURITY_MONKEY_EMAIL_DEFAULT_SENDER= |
| 48 | +SECURITY_MONKEY_SES_REGION=us-west-2 |
| 49 | +SECURITY_MONKEY_SMTP=False |
| 50 | + |
| 51 | +SENTRY_DSN= |
| 52 | +``` |
| 53 | + |
| 54 | +`secmonkey.push.env` |
| 55 | +```bash |
| 56 | +AWS_PROFILE=secinfra |
| 57 | +AWS_REGION=us-west-2 |
| 58 | +AWS_ECS_CLUSTER=default |
| 59 | +``` |
0 commit comments