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.
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/apito 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 stagingIs 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.