Skip to content

[Feature Request] Support deploy a Copilot svc in different environment with different svc configuration #5883

@leon-xz

Description

@leon-xz

Describe your idea/feature/enhancement

It's very common to create a ECS service (eg. mysvc) in different workload environments with different configurations (eg. container specs, number of containers, image tags). I cannot find a easier way to have different svc manifest or cloudformation for different environments. the override feature seems apply to all environments. I end up have to create different services (eg. mysvc-dev, mysvc-qa, mysvc-stag, mysvc-prod) for different environment, and set 'network.connect.alias' to 'mysvc' so that the service maintain the unified internal name in different environment.

It would be great if Copilot allow us to have different svc configuration for different environments.

Proposal

two options I can think of

  1. support having different svc manifest files for different environments. for example copilot svc init -n mysvc -e qa,prod to create extra manifest files for qa and prod environments.

mysvc
- manifest.yml
- manifest.qa.yml
- manifest.prod.yml

  1. support override the cloudformation for specific environment

Additional Details

Metadata

Metadata

Assignees

No one assigned

    Labels

    type/enhancementIssues that are improvements for existing features.type/featureIssues that are new feature requests.type/requestIssues that are created by customers.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions