I have container_command that will call certbot and change my Nginx configuration.
In addition, I use AWS CodePipeline, which is calling such a script every time master is updated.
But the problem is, cfn-init.log is not showing anything when I change EB manually (add environment variable). But it does trigger rebuilding, and drop nginx.conf changes made by certbot.
How to run the script every time?
I used this approach and changed it to container_command (without leader_only)
Both don't trigger script upon EB conf changes.