I just upgraded to Copilot 1.8. I have a pipeline that deploys three services. I just noticed that when the pipeline deployed the services after the upgrade, any variables or secrets defined in the environments section of the service's manifest no longer have their values populated in the running containers. In my case, these are things like the DB host and DB password, which differ between environments. The result is that the application is no longer connected to the database.
Any variables or secrets that are not defined in environments are still populated. Also, any secrets created by addon outputs still have their values populated.
When I inspect the task definition in ECS, I can confirm that it no longer contains the variables and secrets that I am expecting, but it does contain the variables not in the environments section.
When I run copilot svc deploy from my workstation, all the values are populated as expected.
I just upgraded to Copilot 1.8. I have a pipeline that deploys three services. I just noticed that when the pipeline deployed the services after the upgrade, any
variablesorsecretsdefined in theenvironmentssection of the service's manifest no longer have their values populated in the running containers. In my case, these are things like the DB host and DB password, which differ between environments. The result is that the application is no longer connected to the database.Any variables or secrets that are not defined in
environmentsare still populated. Also, any secrets created by addon outputs still have their values populated.When I inspect the task definition in ECS, I can confirm that it no longer contains the variables and secrets that I am expecting, but it does contain the variables not in the
environmentssection.When I run
copilot svc deployfrom my workstation, all the values are populated as expected.