Skip to content

add --manifest flag to copilot init to allow initializing a service using an existing manifest.yml #2388

Open
@bvtujo

Description

copilot svc init is currently overloaded, as it's the only way to initialize a service, either from scratch or from an existing manifest. We should allow customers with existing manifests to specify the location of a manifest.yml file and use that file to recreate the input parameters for svc init.

$ copilot svc init --manifest copilot/fe/manifest.yml
Ok, we'll create a Load Balanced Web Service named fe listening on port 8080 using the Dockerfile located at ./path/to/Dockerfile.

Or using an image and a scheduled job:

$ copilot init --manifest copilot/job/manifest.yml --deploy
Ok, we'll create a Scheduled Job named job which will run every 4 hours using the image located at amazon/amazon-ecs-sample.
Creating ECR Repositories...
Deploying...

We should error out on any other flag input.

$ copilot svc init --manifest copilot/fe/manifest.yml --name backend
✘ `--manifest` cannot be specified with any other flags

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    area/UIIssues about UIarea/manifestIssues about infrastructure-as-code templates.type/enhancementIssues that are improvements for existing features.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions