Project Setup and Environment Configuration
On-prem Deployment Guide (AWS)
Step 1: Download Installer Package from S3
Application/System: AWS S3 and EC2 VM
Goal: Obtain the hivel-onprem package (deployment scripts, Docker Compose files, configuration templates) on your VM.
On your EC2 VM, run:
cd /opt
# Download the package from S3
# Using AWS CLI
aws s3 cp s3://hivel-on-prem-logs/hivel-agent-onprem-deploy/hivel-onprem.zip ./
# Extract the package
unzip hivel-onprem.zip
cd hivel-onprem
# Make deploy script executable
chmod +x deploy.shVerify: Run ls and confirm presence of: deploy.sh, config/, license/, services/, scripts/
Note: Receive your S3 bucket path or pre-signed URL from Hivel support.
If S3 access fails: "Access Denied" typically means your AWS credentials lack S3 read permissions. Confirm with Hivel support that your IAM credentials cover the installer bucket (not just ECR).
Step 2: Install License Files
Application/System: EC2 VM
Goal: Place Hivel-issued license files into the deployment package.
On your EC2 VM, run:
Verify: Both license_signed.json and hivel_onprem_public.pem are present.
Environment Configuration
Step 1: Create and Configure Environment File
Application/System: EC2 VM text editor
Goal: Create the .env file containing all service configuration.
On your EC2 VM, run:
Required configuration: Database variables (DB_HOST, DB_PORT, DB_NAME, DB_USER, DB_PASSWORD) are mandatory. All services fail to start without them. Leave other template variables at their defaults unless Hivel support specifies otherwise.
Step 2: Configure RDS Credentials (Two-Phase Process)
Application/System: AWS RDS and EC2 VM
Phase 1: Root Credentials for Database Migration (First Time Only)
In config/.env, enter your RDS master credentials:
If using AWS Secrets Manager: Retrieve master credentials from AWS Secrets Manager and use them here.
Important: Passwords with special characters ()[]$&|;#<>* or spaces must be enclosed in single quotes.
Special case: dollar signs ($): If your password contains $, write it as $$ (even inside single quotes), because Docker Compose interpolates $VAR variables.
Single quotes in password: Not allowed. If needed, redesign the password without literal single quotes.
Phase 2: Application User Credentials for Services (After Migration Completes)
After flyway-migration successfully completes, update config/.env with the application user:
Default application credentials (if not customized):
Username:
<user>Password:
<password>
To customize the application password:
Before running flyway-migration: Update password in
scripts/flyway-migration/config filesAfter migration: Update the same password in
config/.envEnsure both locations match
Password quoting rule: If your password contains special characters or spaces, use single quotes:
Step 3: Verify RDS Connectivity
Application/System: EC2 VM
Goal: Confirm the VM can reach RDS before running database migration.
On your EC2 VM, run:
Expected result: A insightly=# prompt with no errors.
Connection fails? See Troubleshooting: Database Connection Issues
If successful: Proceed to database migration.
Last updated