# EHRBase Cloud Setup

**URL:** https://discourse.openehr.org/t/ehrbase-cloud-setup/2596
**Category:** Platform
**Created:** [9 May 2022 18:03 UTC](https://discourse.openehr.org/t/ehrbase-cloud-setup/2596 "2022-05-09T18:03:39Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Prithvi\_raj](https://discourse.openehr.org/user_avatar/discourse.openehr.org/prithvi_raj/32/1828_2.png) [@Prithvi\_raj](https://discourse.openehr.org/u/Prithvi_raj)
#### Post date: [9 May 2022 18:03 UTC](https://discourse.openehr.org/t/ehrbase-cloud-setup/2596/1 "2022-05-09T18:03:39Z")

</div>

I am new to EHRBase and have installed it on the localhost and now I would like to deploy/migrate to a cloud environment preferably AWS . Please can some one share any info on the setup process and if it is possible?

---

<div class="post-metadata">

### Author: ![agustinpallares94](https://discourse.openehr.org/user_avatar/discourse.openehr.org/agustinpallares94/32/1557_2.png) [@agustinpallares94](https://discourse.openehr.org/u/agustinpallares94)
#### Post date: [10 May 2022 09:33 UTC](https://discourse.openehr.org/t/ehrbase-cloud-setup/2596/2 "2022-05-10T09:33:54Z")

</div>

Hello Prithvi,

I have deployed it on an openshift. You have two options:

- Use the docker images and deploy it with a docker compose or with pods in kubernetes.
- Or deploy a postgresql, prepare it with the necessary migration scripts (here are some links), prepare ehrbase to connect to that postgres and launch it.

You can find the links here:

- [Deploying EHRBase with Postgres Database without Extensions · Issue #508 · ehrbase/ehrbase · GitHub](https://github.com/ehrbase/ehrbase/issues/508)

- [Cannot run migrations if the user is anything other than "ehrbase" · Issue #789 · ehrbase/ehrbase · GitHub](https://github.com/ehrbase/ehrbase/issues/789)

- [Deploying EHRbase on Azure | surrounded.space Blog](https://blog.surrounded.space/post/2021/02/22/deploying-ehrbase-on-azure/)

---

<div class="post-metadata">

### Author: ![Prithvi\_raj](https://discourse.openehr.org/user_avatar/discourse.openehr.org/prithvi_raj/32/1828_2.png) [@Prithvi\_raj](https://discourse.openehr.org/u/Prithvi_raj)
#### Post date: [11 May 2022 02:53 UTC](https://discourse.openehr.org/t/ehrbase-cloud-setup/2596/3 "2022-05-11T02:53:56Z")

</div>

Hi Augustine.  
Thanks a ton for guiding me through. I really appreciate the way you have put this.  
Will definitely read on this .  
Thank you
