-
Notifications
You must be signed in to change notification settings - Fork 0
Installation of the DB
Aditya Abeysinghe edited this page Mar 3, 2024
·
1 revision
The Identity Web API uses a SQL Server database hosted in RDS to manipulate client data. The Lambda function created connects with the database in RDS.
- Log in to AWS console and search RDS in Services
- Click create database and select Standard create in Choose a database creation method
- Select Microsoft SQL Server in Engine type
- The DB instance identifier should be IdentityPM
- Enter a username and a password to connect with the database
- In the Virtual private cloud (VPC) select the VPC that was created
- Set Public access to Yes
- In VPC security group select Create New and enter a name for the security group
- Choose create database
The database that was created can be seen as follows:
Enable inbound traffic from SSMS.
- Click the database created and navigate to Connectivity & security tab
2. Click the security group in the VPC security groups and click the security group
3. Click Edit inbound rules
4. Click Add rule
5. Set the values as MSSQL for Type and My IP for Source. Then, click Save Rule.
Finally, click the database created and navigate to the Connectivity & security tab. Copy the endpoint.
Open SSMS and set the connection as follows:
- Server name: (endpoint),(port).
- Authentication: SQL Server Authentication
- Username: Username from Configure
- Password: Password from Configure
Click Connect.
Open the DB Creation.sql file.
Click Execute.
Finally, click the database created and navigate to the Connectivity & security tab. Set Public access to No.