0

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.

kAldown
  • 610
  • 2
  • 8
  • 27
  • "when I change EB manually" you shouldn't be doing this, especially since you have CICD pipeline for EB. Why not updated EB env variables to CICD pipeline as well? – Marcin Oct 07 '20 at 22:18
  • 1
    Good question. Have no idea. Will see how to do it properly. – kAldown Oct 08 '20 at 12:28
  • @Marcin could you please share the name of a service to handle this secret env transitions properly? Thanks – kAldown Oct 08 '20 at 12:35
  • You can set env variables for EB programmatically using [aws:elasticbeanstalk:application:environment](https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/command-options-general.html#command-options-general-elasticbeanstalkapplicationenvironment). – Marcin Oct 08 '20 at 12:44

0 Answers0