# Install in EC2 & RDS

**URL:** <https://community.passbolt.com/t/install-in-ec2-rds/3430>\
**Category:** Installation Issues\
**Created:** [January 15, 2021, 11:36am UTC](https://community.passbolt.com/t/install-in-ec2-rds/3430 "2021-01-15T11:36:18Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![poorni](https://avatars.discourse-cdn.com/v4/letter/p/0ea827/32.png) [@poorni](https://community.passbolt.com/u/poorni)\
**Post date:** [January 15, 2021, 11:36am UTC](https://community.passbolt.com/t/install-in-ec2-rds/3430/1 "2021-01-15T11:36:18Z")

</div>

Hi, i want to install passbolt in ec2 & keep the DB in RDS.  
AWS AMI provided had apps & db in one package.  
how can i set up web, app & db separately.

Thanks & Regards  
Poorni

---

<div class="post-metadata">

**Author:** ![garrett](https://yyz1.discourse-cdn.com/flex031/user_avatar/community.passbolt.com/garrett/32/545_2.png) [@garrett](https://community.passbolt.com/u/garrett)\
**Post date:** [January 15, 2021, 2:14pm UTC](https://community.passbolt.com/t/install-in-ec2-rds/3430/2 "2021-01-15T14:14:29Z")

</div>

Hi @poorni

When you configure passbolt in the web installation process ([Step 2 on this page](https://help.passbolt.com/hosting/install/ce/aws.html)), you can provide the details to your external RDS database then.

---

<div class="post-metadata">

**Author:** ![poorni](https://avatars.discourse-cdn.com/v4/letter/p/0ea827/32.png) [@poorni](https://community.passbolt.com/u/poorni)\
**Post date:** [January 19, 2021, 9:11am UTC](https://community.passbolt.com/t/install-in-ec2-rds/3430/3 "2021-01-19T09:11:11Z")

</div>

Hi,  
Error while setting the own RDS in bassbolt configuratin “A connection could not be established with the credentials provided. Please verify the settings.”  
But i am able to connect to RDS from EC2 and perform database activities.

Please assist.

Thanks

---

<div class="post-metadata">

**Author:** ![poorni](https://avatars.discourse-cdn.com/v4/letter/p/0ea827/32.png) [@poorni](https://community.passbolt.com/u/poorni)\
**Post date:** [January 19, 2021, 9:36am UTC](https://community.passbolt.com/t/install-in-ec2-rds/3430/4 "2021-01-19T09:36:15Z")

</div>

![image](https://canada1.discourse-cdn.com/flex031/uploads/passbolt/original/1X/d3ff06b075ec2a7b1f9a61a54c15a8cc9d29bcb1.png)

---

<div class="post-metadata">

**Author:** ![garrett](https://yyz1.discourse-cdn.com/flex031/user_avatar/community.passbolt.com/garrett/32/545_2.png) [@garrett](https://community.passbolt.com/u/garrett)\
**Post date:** [January 19, 2021, 2:02pm UTC](https://community.passbolt.com/t/install-in-ec2-rds/3430/5 "2021-01-19T14:02:17Z")

</div>

Hi @poorni We’re working this out with [another user](https://community.passbolt.com/t/there-was-a-problem-connecting-to-the-database/3443/4) as well. It may be the case that RDS does not like the port configuration when using the URL. Can you try to use the local IP or public IP of the RDS server instead of the URL?

---

<div class="post-metadata">

**Author:** ![poorni](https://avatars.discourse-cdn.com/v4/letter/p/0ea827/32.png) [@poorni](https://community.passbolt.com/u/poorni)\
**Post date:** [January 20, 2021, 1:47am UTC](https://community.passbolt.com/t/install-in-ec2-rds/3430/6 "2021-01-20T01:47:24Z")

</div>

Hi @garrett after creating the RDS, i did the below and its working.

1. Added the security group in RDS to allow EC2 in my case
2. “CREATE DATABASE passboltdb CHARACTER SET utf8mb4 COLLATE utf8mb4\_unicode\_ci;”  
and in the connection i used the hostname not the ip

Thanks for reverting.
