Skip to content

Specifying --env without specifying --app for 'task run' produces confusing error message #3484

Open
@andyspix

Description

This is a minor nit to pick, but when specifying to run a task and the --env field is passed without a corresponding --app flag, ie:

copilot task run --env staging --entrypoint entrypoints/test_task.sh

the tool returns:
✘ could not find an application attached to this workspace, please run app init first

when an application exists, and of course app init doesn't fix the issue, which is actually an incompletely specified command line:

copilot task run --app foobar --env staging --entrypoint entrypoints/test_task.sh

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/taskIssues about taskstype/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