Skip to content

depends_on field in pipeline does not account for infrastructure dependencies #3912

@JakeBrown

Description

@JakeBrown

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    type/bugIssues that are bugs.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions