Apache NiFi Secured on Ubuntu 20.04

This comprehensive guide covers all steps to launch, configure, and verify your secured Apache NiFi instance on Ubuntu 20.04.

Overview: This AMI provides an enhanced Apache NiFi deployment with built-in SSL, secure access controls, and enterprise features. Apache NiFi is a powerful data logistics platform that automates the movement of data between disparate systems, offering a web-based interface for designing, controlling, and monitoring dataflows.

Step 1: Launch EC2 Instance

  1. Navigate to the MySQL on Ubuntu 22 AMI
  2. Click “Continue to Subscribe”
  3. Accept the terms and click “Continue to Configuration”
  4. Select your preferred AWS region
  5. Click “Continue to Launch”

Recommended Configuration

  • Instance Type: t2.large or higher (recommended for production workloads)
  • Storage: Minimum 20 GiB (adjust based on data flow requirements)
  • Security Group:
    • Port 80 (HTTP)
    • Port 443 (HTTPS)
    • Port 22 (SSH) – Only open to trusted IPs

Step 2: Connect to Your Instance

Secure Shell (SSH)

  1. Wait for the instance to reach the running state in your cloud console
  2. Locate the instance’s Public IP address
  3. Use an SSH client with your private key file
  4. The default username for Ubuntu AMIs is typically ubuntu

Command: ssh -i /path/to/your-key-pair.pem ubuntu@<Instance-Public-IP>

Username: ubuntu

Key File: /path/to/your-key-pair.pem

Instance IP: Your instance public IP

Step 3: Verify Apache NiFi Installation

Once connected to your Ubuntu Server, verify Apache NiFi is properly installed and operational using these methods:

Method 1: Service Status and Port Check

A. Verify NiFi Service Status.
  1. Check that the NiFi service is active and running:

systemctl status nifi
  1. Verification: The output should show the service status as active (running)
Service: nifi.service – Apache NiFi
Status: active (running)
B. Verify Port Listening.
  1. Check that the NiFi service is active and running:

ss -tulnp | grep 443
  1. Verification: The output should show the service status as active (running)
tcp   LISTEN   0   50   0.0.0.0:443   0.0.0.0:*
Apache nifi service status and port check

Method 2: Web Interface Access

Open your web browser and navigate to your instance’s public IP address (proceed via advanced for the certificate warning):


https://your-instance-public-ip

Example:

https://34.224.102.226

You should see the Apache NiFi dashboard, confirming successful installation and web access.

Apache nifi dashboard access