Infrastructure Configuration
Configuring the Virtual Private Cloud (VPC)
- Access the AWS Console and locate the VPC service.
- Initiate the creation of a new VPC by selecting the 'VPC and more' option and name it
care-vpc
. This action will automatically generate a new VPC, along with associated subnets, route tables, and internet gateways. - The default settings will be applied automatically, but you can modify these according to your specific requirements.
- Make sure Internet Gateway is attached to the VPC to enable external communication.
Configuring the Relational Database Service (RDS)
- From the AWS Console, navigate to the RDS service.
- Create a new database instance using the
PostgreSQL
engine. - Assign DB cluster identifier as
care-db
- Set the Credential management as
Self managed
and provide the master username and password. - Set the Availability zone as Per requirement.
- Configure the database instance size and storage capacity as needed.
- Use the same VPC and subnet group that was created earlier.
- Configure the security group to allow inbound traffic on port
5432
from all sources. (This can be restricted to the EC2 instance's internal IP address to enhance security.) - Set Public accessibility to
No
to restrict access to the database from the internet.
Configuring the S3 Bucket
- Locate the S3 service in the AWS Console.
- Create two new buckets and assign them the names
facility-data
andpatient-data
. - Adjust the permissions settings for each bucket: set
facility-data
to public andpatient-data
to private. - Configure the CORS policy for the
facility-data
andpatient-data
buckets to restrict access to specific domains after the deployment of the application.
Configuring the Elastic Compute Cloud (EC2) Instance
- Access the EC2 service via the AWS Console.
- Launch a new instance and select the
Ubuntu
image. - Choose the
t3a.medium
instance type. (You can adjust this based on your requirements.) - Choose the VPC and subnet that were created earlier.
- Configure the security group to allow inbound traffic on ports
22
80
and443
from all sources. - Assign a key pair to the instance to facilitate SSH access.
- Configure the storage settings as required.
Resource | Instance Type | Region | Monthly Cost (INR) | Cost Estimation Methodology |
---|---|---|---|---|
EC2 Instance | t3a.medium | ap-south-1 | ~₹1080.00 | Based on 24/7 usage with default pricing |
RDS Instance | db.t2.micro | ap-south-1 | ~₹1245.00 | Estimated for a single instance with minimal usage |
S3 Bucket | 10 GB Storage | ap-south-1 | ~₹19.00 | Calculated for 10 GB of standard storage |
Data Transfer | 4 GB Outbound | ap-south-1 | ~₹29.60 | Estimated for 4 GB of outbound data transfer |
Total | ~₹2373.60 |
NB: Additional Including taxes, ec2 related costs etc. will be added to the total cost.