I initialized aws copilot application, so it created a copilot folder and inside that it created service details with manifest.yml file. And created my AWS infrastructure for me. After that I delete that infra using copilot app delete.
Now I want to deploy this without going to initialization process of copilot. How is that possible?
The solution which worked for me is:
You run
copilot app initto initialize an application as you did previously. Then, runcopilot svc init. When asked for the service's name, put the same name as you have before - this information can be found inmanifest'snamefield.Copilot will check if the
copilot/<service>/manifest.ymlalready exists, and won't overwrite it if it has. As a result, your previous configurations in themanifestwill stay.Next time when you run
copilot svc deploy, Copilot will deploy the service using configurations in themanifest. Since it's the samemanifestas before, the configuration will be the the same.