Closed scble closed 8 months ago
copilot svc init --name example-app I have confirmed that the ECR has been created after executing the following command, and that it has permissions and tags. However, I then received the following error and confirmed that the repository had been deleted.
Unable to retrieve Arn attribute for AWS::ECR::Repository, with error
Therefore, when we look at the resources and output of the stack, we do not recognize the example-app repository, so we cannot proceed with the deployment either.
https://github.com/aws/copilot-cli/issues/4296 I don't want to delete the stack because it contains the production environment settings.
Sorry, I found the cause. I checked the corresponding stack template from CloudFormation's StackSets and found that there are multiple RepositoryName's. This is as expected.
However, a non-existent ECR repository configuration remained. It was probably deleted manually.
In other words, the problem was not with the newly deployed workloads I wanted to deploy, but with the ECR repository not existing, even though the previously existing ECR configuration was still there.
Environment
Cluster: Fargate
I tried to deploy a new svc. I already have 3 environments and 3 services running in each environment.
However, the StackSet-xxxxx-web-infrastructure stack(Description: Cross-regional resources to support the CodePipeline for a workspace) has become UPDATE_ROLLBACK_COMPLETE.
I tried to delete, but get the error
I then tried to run delete again, but get the following message. "✘ couldn't find service example-app in the application xxxxx".
copilot svc init --name example-app I tried executing
I ran init again and it recommended deploying as follows.
Therefore, I ran deploy but it stopped with the following error.
✅ I checked the stack parameters and found that ContainerImage is specified as a URI in the stack of other successful services, but the failing task has a digest (@sha256:xxxxxxxxxxxxxxxxxxxxxxxxx).
I also ran copilot svc delete and was able to confirm that the service stack was deleted, but I got the following error and the stack for StackSet-xxxx-web-infrastructure was UPDATE_ROLLBACKIN with the following error PROGRESS.
Is there any way to recover?
ECR Repository permissions and tags are set.