Our use case is that after creation of a new Environment, the deployment of a Pipeline fails at the build step when the application contains a Worker Service.
SNS topic abc does not exist in environment xyz
This happens because the Pipeline attempts to generate the CloudFormation templates (copilot svc package) for all services, before any services have been deployed. Any SNS topics that the worker subscribes to have not been created yet.
We were excited by the new feature in v1.18 Control the order of services of jobs deployed in a pipeline (#3497) but then ran into this issue. It is probably by design but it wasn't clear from the docs.
Currently our workaround is to manually deploy the publishing service before the pipeline runs.
Our use case is that after creation of a new Environment, the deployment of a Pipeline fails at the build step when the application contains a Worker Service.
This happens because the Pipeline attempts to generate the CloudFormation templates (
copilot svc package) for all services, before any services have been deployed. Any SNS topics that the worker subscribes to have not been created yet.We were excited by the new feature in v1.18 Control the order of services of jobs deployed in a pipeline (#3497) but then ran into this issue. It is probably by design but it wasn't clear from the docs.
Currently our workaround is to manually deploy the publishing service before the pipeline runs.