Skip to content

is copilot task run --generate-cmd compatible with environments in other AWS accounts? #3094

@codekitchen

Description

@codekitchen

I did a first test run of copilot all in one AWS account. Now I'm working on deploying our application for real on top of copilot, with a "primary" account that just holds the copilot application resources, and then a separate AWS account per copilot environment.

In my initial testing, I could do copilot task run --generate-cmd myapp/staging/api to get the parameters necessary to run pre-deploy db migrations. However, now that I've spun things up in this multi-account structure I get an error doing this:

✘ generate task run command from service api of application myapp deployed in environment staging: retrieve network configuration for service api: no cluster found in environment staging

Is this an issue because my application, and the CLI profile I am using, are now in a different AWS account from the actual staging environment resources? If not, I'm not sure what else to do to debug, any pointers there would be great. Thanks.

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