Add EBS configuration options
This adds `.ebextension` options to the repository that can control how the beanstalk environment is configured. The two files perform different tasks: - `sfr-bardo-copyright-development.config` is an empty file for environment variables (empty because at present ENV variables contain secrets that cannot be committed to source control) - `cron-linux.config` contains configuration details for a nightly cron task that checks for updates from the source git repositoriesadd-new-regnum-params
parent
386a8515a7
commit
b526c072a1
|
@ -0,0 +1,18 @@
|
|||
files:
|
||||
"/etc/cron.d/mycron":
|
||||
mode: "000644"
|
||||
owner: root
|
||||
group: root
|
||||
content: |
|
||||
10 1 * * * root /usr/local/bin/updateNightly.sh
|
||||
|
||||
"/usr/local/bin/updateNightly.sh":
|
||||
mode: "000755"
|
||||
owner: root
|
||||
group: root
|
||||
content: |
|
||||
#!/bin/bash
|
||||
|
||||
while read -r line; do eval "$line"; done < /opt/python/current/env
|
||||
|
||||
python3 /opt/python/current/app/main.py --time 86400
|
|
@ -0,0 +1,2 @@
|
|||
option_settings:
|
||||
aws:elasticbeanstalk:application:environment:
|
Loading…
Reference in New Issue