AWS Deployment with Cloud Formation Template

High-Level Architecture Overview

This section provides a conceptual overview of how the BlueRock Secure MCP Server is deployed on AWS EC2 and how its core components interact.

End-to-End Flow

Deployment scripts are executed from a user desktop or client environment where AWS CLI is configured. The script uses AWS APIs to provision the required AWS Resources and deploy BlueRock Secure MCP Server.

BlueRock EC2 Deployment Architecture

Architecture Diagram

BlueRock EC2 Architecture Components

A typical BlueRock Secure MCP Server EC2 deployment consists of the following AWS Resources/Services:

AWS Resources/Services
Description

Virtual Private Cloud (VPC)

Provides an isolated networking environment in AWS where all BlueRock deployment resources are created.

Amazon VPC Gateway

Enables controlled inbound and outbound internet access for resources deployed inside the VPC.

Amazon EC2 (BlueRock Node)

Runs the BlueRock MCP Server using a hardened BlueRock AMI and hosts all runtime services.

Amazon Elastic Block Store (EBS)

Provides persistent block storage attached to the EC2 instance for operating system and application data.

Amazon S3 (BlueRock Config)

Stores BlueRock configuration files such as config.toml that are retrieved by the BlueRock control plane during runtime.

AWS Identity and Access Management (IAM) Role

Grants the EC2 instance permission to access required AWS services such as Amazon S3 and Amazon CloudWatch.

Amazon CloudWatch

Receives telemetry and monitoring data generated by the BlueRock MCP Server.

Amazon CloudWatch Logs

Stores runtime logs and security events generated by the BlueRock MCP Server for analysis and auditing.

User / Administrator

Manages and monitors the BlueRock deployment through AWS services such as CloudWatch and AWS Systems Manager (SSM).


Supported AMI Distributions

BlueRock Secure MCP Server supports the following Linux distributions. Each distribution has a corresponding AMI with specific kernel version:

Name

Kernel Version

AMI Name

Amazon Linux 2023

6.12.51

bluerock-release-25-50-0-amzlnx2023-6.12.52-free-ami

Ubuntu 24.04

6.12.51

bluerock-release-25-50-0-ubuntu2404-6.12.52-free-ami

Note: The AMI name includes the BlueRock release version, Linux distribution, and Kernel version, allowing users to identify compatibility directly from the AMI name.


Prerequisites

AWS Requirements

  • Active AWS account

  • API key credentials configured in local environment

  • AWS CLI should be installed and key credentials should be configured

Required Packages

The BlueRock Deployment Package for EC2 is provided by BlueRock as part of customer onboarding. This package includes AWS CloudFormation templates required to deploy the BlueRock Secure MCP Server on AWS EC2.

AWS CLI installation and configuration guide: AWS-CLI-Installation-Config-Guide

Obtaining AWS Access Keys

Access keys can be generated from the AWS Management Console.

  1. Navigate to the AWS Management Console

  2. Open IAM

  3. Go to Users

  4. Select your user account

  5. Open the Security credentials tab

  6. Under Access keys, choose Create access key

Copy the Access Key ID and Secret Access Key into the credentials file shown above.

AWS Permissions Required

User permissions: The user executing the deployment script requires permissions to create the following AWS resources:

  • VPC, Subnets, Internet Gateway, Route Tables

  • EC2 instance

  • Security Group

  • IAM Profile

  • S3 bucket

Note: The IAM instance profile required for BlueRock instance is automatically created by the deployment script.


Deployment Package Overview

Download and Extract Package

Download the BlueRock deployment package (bluerock-cloudformation-ec2) and extract it on your local environment. It contains AWS CloudFormation templates required to deploy the BlueRock Secure MCP Server on AWS EC2.

Note:

On macOS, the tar command may display the warning:

This warning is expected and can be safely ignored.

Directory Structure

After extracting the CloudFormation deployment package, the directory structure contains AWS CloudFormation templates and parameter files for different EC2 deployment modes.


CloudFormation Deployment

Configuration Parameters

The CloudFormation deployment uses a predefined set of parameters to control networking, instance configuration, and telemetry settings.

Parameters can be provided in either of the following ways:

  • Through a JSON parameters file

  • Directly via the AWS CloudFormation Console

Deployment using AWS Web Console

  1. Navigate to AWS CloudFormation Console

  2. Click Create Stack → With new resources (standard).

  1. Upload the CloudFormation template

  1. Configure parameters

Parameters List:

  1. Configure Stack Options

  1. Review and create stack

  1. Monitor stack events for completion


Deployment using AWS CLI

Step 1: Navigate to the CloudFormation template directory

Step 2: Create CloudFormation stack

Step 3: Monitor stack status.

Wait until the stack status shows CREATE_COMPLETE before proceeding.


Post-Deployment Validation

This section verifies that the BlueRock Secure MCP Server has been deployed successfully and is functioning as expected.

Check Bluerock Instance

Check the instance status to confirm that the EC2 instance is running and has a public IP address assigned (for public deployments):

Check Instance Access

Option 1: SSH Access (Public Deployment Only)

Check instance access to confirm SSH connectivity for public deployments by running the appropriate command for the selected AMI:

Option 2: AWS Systems Manager (SSM)

For Private deployment, where SSH is disabled, connect via AWS SSM.

  1. Navigate to EC2 Console

  2. Select the BlueRock instance

  3. Click Connect → Session Manager

  1. Click Connect

Successful connection confirms:

  • SSM agent is running

  • IAM instance profile permissions are correct

Verify BlueRock Control Plane Service

Verify that the BlueRock Control Plane service is running by checking that the Ultra Control service is in the active (running) state.

Check Otel Collector:

Check the OpenTelemetry Collector and Ultra Control containers to verify that both services are running.

Logs should show normal startup messages with no repeated errors or crash loops.

Verify OTEL Events in AWS CloudWatch

Check CloudWatch logs:

  1. Navigate to CloudWatch Console

  1. Go to Log Groups

  1. Find the BlueRock Log Group

  1. Verify:

  • Log entries are present

  • Events originate from the EC2 instance

  • Timestamps align with instance startup activity

Expected logs include runtime events emitted by the BlueRock Secure MCP Server.

For additional information on CloudWatch Logs, see: CloudWatchLogs

Last updated