> For the complete documentation index, see [llms.txt](https://karansingh.gitbook.io/tutorialsdojo-wrong-answers-aws-sec-spec/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://karansingh.gitbook.io/tutorialsdojo-wrong-answers-aws-sec-spec/infrastructure-security-70/working-with-on-premises-instances-for-codedeploy.md).

# Working with on-premises instances for CodeDeploy

* An **on-premises instance is any physical device that is not an EC2 instance that can run the CodeDeploy agent and connect to public AWS** service endpoints.

* **Deploying a CodeDeploy application revision to an on-premises instance** involves two major steps:<br>
  \*
  1. **Configure each on-premises instance, register it with CodeDeploy, and then tag it**.
  2. **Deploy application revisions to the on-premises instance**.<br>

* If you **don't want an on-premises instance to be used in deployments** anymore, you can simply **remove the on-premises instance tags from the deployment groups**.
