How to create infra with previously created manifest.yml file #2899
-
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 as manifest.yml is already having those details? Or in another words how I can replicate same application in another AWS account? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
Hello @gauravjeswani ! You want to deploy services with the same configurations as before, am I correct? You can still run Copilot will check if the Next time when you run |
Beta Was this translation helpful? Give feedback.
Hello @gauravjeswani ! You want to deploy services with the same configurations as before, am I correct?
You can still run
copilot app init
to 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 in manifest'sname
field.Copilot will check if the
copilot/<service>/manifest.yml
already exists, and won't overwrite it if it has. As a result, your previous configurations in the manifest will stay.Next time when you run
copilot svc deploy
, Copilot will deploy the service using configurations in the manifest. Since it's the same manifest as before, the configuration …