Loading...
Recommendations
Explore
ECS: Create the Cluster:
Under
Get Started
- Create custom Container(configure).
Edit Container:
Provide container name
Provide image, this refers to the image pushed to your ECR repository, and it has the following format: <
aws_account_id>.dkr.ecr.<region>.amazonaws.com/<repository>:<tag>
.
Add Port Mappings 8080 and 8443 under Private repository authentication.
Health Check:
Provide command: curl -f
http://localhost:8080/
|| exit 1
Interval: 300
Timeout: 60
Start Period: 300
Retries: 3
Environment:
CPU units: 1024/2048
GPUs: 1
Entry point: /entrypoint.sh
Command: ./mcserver
Working directory: /opt/connect
Environment Variables:
DATABASE=postgres
KEYSTORE_STOREPASS=docker_storepass
KEYSTORE_KEYPASS=docker_keypass
DATABASE_URL=jdbc:postgresql://serverip:5432/mirthdb
DATABASE_USERNAME= database_username
DATABASE_PASSWORD= database_password
STORAGE AND LOGGING
Mount points: /opt/connect/appdata
Log configuration: Check - "Auto-configure CloudWatch Logs"
Provide Task definition details:
Task definition name
Network mode
Task execution role
Compatibility
Task memory
Task CPU
Define your Service and click
Create
button. This would create the cluster.
Click on the service you have created and go to
Tasks
tab and verify that the tasks status are RUNNING.
ECS: Create the Cluster:
Mirth® Connect by NextGen Healthcare Amazon Web Services (AWS) Preferred Deployment
Upload Mirth® Connect by NextGen Healthcare Docker Image to ECR
With these steps, you can upload docker images to your local docker repository. Obtain the latest Mirth® Connect by NextGen Healthcare docker image and load it into your local docker repository. Refer to the section Using Docker Images in the User Guide for Mirth® Connect by NextGen Healthcare on the Success Community for detailed instructions. Push the image to your AWS ECR repository. Refer to the AWS documentation. Parent topic: Manual Steps To Setup ECS
Mirth® Connect by NextGen Healthcare Amazon Web Services (AWS) Preferred Deployment
Use a Shared Keystore Across the Cluster
Upload the keystore file into S3. The file must be accessible by your ECS cluster. Note the Object URL of the file in S3. Include the following environment variables in your ECS configuration: KEYSTORE_TYPE - The type of keystore, for example, JKS. KEYSTORE_DOWNLOAD - The S3 Object URL of the Mirth® Connect keystore file. This file will be downloaded into the container and Mirth® Connect by NextGen Healthcare will use it as its keystore. ALLOW_INSECURE - Allow insecure SSL connections when downloading files during startup. This applies to keystore downloads, plugin downloads, and server library downloads. OS and CPU/Ram recommendations - depends on research item on S,M,L and XL setups Small Medium Large ECS Task vCPU=2048, 4GB RAM vCPU=2048, 8GB RAM vCPU=4096, 16GB RAM Parent topic: Manual Steps To Setup ECS
Mirth® Connect by NextGen Healthcare Amazon Web Services (AWS) Preferred Deployment
Manual Steps To Setup ECS
RDS: Create the Database ECS: Create the Cluster: Install Plugins Use a Shared Keystore Across the Cluster Upload Mirth Connect by NextGen Healthcare Docker Image to ECR With these steps, you can upload docker images to your local docker repository. RDS: Create the Database ECS: Create the Cluster: Install Plugins Use a Shared Keystore Across the Cluster Parent topic: Elastic Container Service (ECS)
Mirth® Connect by NextGen Healthcare User Guide
Using Docker Images
With this topic, you can download Docker images and launch instances in Mirth® Connect. Supported Architectures Docker images for Mirth® Connect 4.6.0 and later versions support both linux/amd64 and linux/arm64 architectures. Download a Connect instanceThere are two methods for loading a Mirth® Connect image into your local Docker repository. Log on to Mirth® Connect Command Center, navigate to the Docker Dashboard from the Main Side Menu, and follow the instructions for getting a token and pulling the desired image. Download a Docker image file from the Success Community, and then load it into your repository using the following command: docker load -i FILENAME.tar.gz Start a Connect instance Quickly start Connect using embedded Derby database and all configuration defaults. At a minimum you will likely want to use the -p option to expose the 8443 port so that you can login with the Administrator GUI or CLI: docker run -p 8443:8443 -e _MP_LICENSE_KEY='0000-00000000000-000000000-000000
Mirth® Connect by NextGen Healthcare Amazon Web Services (AWS) Preferred Deployment
Set up the Single EC2 Instance
Before you begin To run Mirth® Connect by NextGen Healthcare in a single EC2 instance, you will need the following prerequisites: Set up a virtual private cloud (VPC) with at least two private subnets An RDS database. Select EC2 from the Main Menu of the AWS console. Click Launch Instance, then select Launch Instance. Select Amazon Linux 2 AMI (HVM), SSD Volume Type for the AMI. For this single node setup, selectt3.medium (2 CPU, 4 GB RAM). Click Next: Configure Instance Details. Network: Select the VPC that you created in the Networking section of this document. Subnet: Select one of the subnets created in the Networking section of this document. Auto-assign Public IP: Select Disable (you are in a private subnet and will be behind an elastic load balancer). Keep the rest of the defaults on this page and select Next: Add Storage. Keep the default size for the root EBS volume (8GB) and select Next: Add Tags. Select Next: Configure Security Group. Next to Assign a security group, select
Mirth® Connect by NextGen Healthcare Amazon Web Services (AWS) Preferred Deployment
Install Mirth® Connect on the EC2 Instance
SSH into your newly created EC2 instance using your key pair. Edit the mirth.properties file to point to the RDS database that you created in a previous step. In the terminal, enter the following: EC2 Terminal Window $ wget http://downloads.mirthcorp.com/connect/3.11.0.b2609/mirthconnect-3.11.0.b2609-unix.tar.gz$ sudo yum update$ sudo yum install -y java-11-amazon-corretto-devel$ tar -xzf mirthconnect-3.11.0.b2609-unix.tar.gz$ cd "Mirth® Connect"$ cat docs/mcservice-java9+.vmoptions >> mcserver.vmoptions$ echo "server.id.ephemeral = true" >> conf/mirth.properties$ . /mcserver & Parent topic: Single EC2 Instance