Sandbox Edition Deployment¶
15 min
Deploy Aletyx Decision Control Sandbox with embedded H2 database for quick evaluation, POCs, and development environments.
Overview¶
Aletyx Decision Control Sandbox
Perfect for developers, proof-of-concepts, testing, and small workloads with hourly billing and embedded H2 database.
Key Features:
- Embedded H2 database (no external database required)
- Pay-as-you-go hourly billing
- Simple single-instance deployment
- Optional SSL/HTTPS with Let's Encrypt
- Full Decision Control functionality
- Automatic credential generation
Quick Start Deployment¶
Step 1: Subscribe on AWS Marketplace¶
- Visit the AWS Marketplace
- Search for "Aletyx Decision Control Sandbox"
- Click Continue to Subscribe
- Review and accept the terms
- Click Continue to Configuration
Step 2: Configure Deployment¶
- Select Region: Choose your AWS region (default: us-east-1)
- Select Version: Choose the latest version
- Click Continue to Launch
Step 3: Launch with CloudFormation¶
- Launch Action: Select "Launch CloudFormation"
- Click Launch
- You'll be redirected to AWS CloudFormation console with the template pre-loaded
Step 4: Configure Stack Parameters¶
The CloudFormation stack will prompt you for several parameters:
Stack Name:
Network Configuration:
- VpcId: Select your VPC (or use default VPC)
- SubnetId: Select a public subnet in your VPC
Instance Configuration:
- InstanceType:
t3.medium(default - 2 vCPU, 4 GB RAM) - Options:
t3.medium,t3.large,c5.large,c5.xlarge - Upgrade to t3.large (8 GB RAM) or c5 series for better performance
- KeyName: Select an existing EC2 key pair for SSH access
Security Configuration:
- AllowedCidr: IMPORTANT - Restrict to your IP address!
- Format:
YOUR_IP_ADDRESS/32 - Example:
203.0.113.45/32 - Strongly recommended: DO NOT use
0.0.0.0/0(open to internet) - Find your IP: Visit https://checkip.amazonaws.com
Optional - Custom Domain (HTTPS):
- CustomDomain: Subdomain for your application (e.g.,
my-app) - HostedZoneName: Your Route 53 hosted zone (e.g.,
example.com.) - Leave blank for HTTP-only deployment
- Requires existing Route 53 hosted zone in your AWS account
- See SSL/HTTPS Configuration for details
Step 5: Create Stack¶
- Review all parameters carefully
- Acknowledge IAM capabilities: Check the box to allow CloudFormation to create IAM roles
- Click Create Stack
CloudFormation will now provision all resources (approximately 5-10 minutes).
Step 6: Monitor Stack Creation¶
Watch the CloudFormation console as resources are created:
- Events Tab: Shows real-time progress
- Resources Tab: Lists all created AWS resources
- Outputs Tab: Will show access URLs when complete
Accessing Your Deployment¶
Finding Your Application URL¶
Once the stack reaches CREATE_COMPLETE status:
- Go to CloudFormation console
- Select your stack
- Click Outputs tab
You'll see one of these URLs:
HTTP Deployment (No Custom Domain):
HTTPS Deployment (With Custom Domain):
Getting Instance Information¶
From CloudFormation Outputs:
Or query via AWS CLI:
aws cloudformation describe-stacks \
--stack-name aletyx-sandbox-demo \
--region us-east-1 \
--query 'Stacks[0].Outputs[?OutputKey==`PublicIpAddress`].OutputValue' \
--output text
Admin Access Options¶
Option 1: AWS Systems Manager Session Manager (Recommended)¶
No SSH key required - Uses IAM permissions for secure access.
Connect via AWS Console:¶
- Go to EC2 console
- Select your instance
- Click Connect button
- Choose Session Manager tab
- Click Connect
Connect via AWS CLI:¶
# Get instance ID from CloudFormation
INSTANCE_ID=$(aws cloudformation describe-stack-resources \
--stack-name aletyx-sandbox-demo \
--region us-east-1 \
--query 'StackResources[?ResourceType==`AWS::EC2::Instance`].PhysicalResourceId' \
--output text)
# Start session
aws ssm start-session \
--target $INSTANCE_ID \
--region us-east-1
Benefits:¶
- No SSH keys to manage
- No security group port 22 rules needed
- All sessions logged to CloudTrail
- IAM-based access control
- Works even if instance has no public IP
Option 2: SSH Access¶
Traditional SSH access for advanced users.
Prerequisites:¶
- EC2 Key Pair: You must have the private key (
.pemfile) for the KeyName you selected - Security Group: Port 22 must be open to your IP (included in CloudFormation template)
Connect via SSH:¶
# Get instance public DNS
PUBLIC_DNS=$(aws cloudformation describe-stacks \
--stack-name aletyx-sandbox-demo \
--region us-east-1 \
--query 'Stacks[0].Outputs[?OutputKey==`PublicDnsName`].OutputValue' \
--output text)
# SSH to instance
ssh -i ~/.ssh/your-key.pem ec2-user@$PUBLIC_DNS
Or using IP address:
Understanding Resources Created¶
The CloudFormation template creates the following AWS resources:
- EC2 Instance: Application server with embedded H2 database
- Security Group: Firewall rules for HTTP/HTTPS/SSH access
- IAM Instance Profile: Allows SSM Session Manager and CloudWatch
- IAM Role: With
AmazonSSMManagedInstanceCoreandCloudWatchAgentServerPolicy - Route 53 Record (optional): DNS A record pointing to instance IP
- Elastic IP (optional): Static IP address
Security Groups¶
Application Security Group:¶
Inbound Rules:
| Port | Protocol | Source | Purpose |
|---|---|---|---|
| 80 | TCP | AllowedCidr |
HTTP access (or 0.0.0.0/0 for Let's Encrypt) |
| 443 | TCP | AllowedCidr |
HTTPS access |
| 22 | TCP | AllowedCidr |
SSH access (optional) |
Outbound Rules: All traffic allowed (required for internet access)
CloudFormation Outputs¶
After deployment, CloudFormation provides these useful outputs:
| Output Key | Description | Example Value |
|---|---|---|
ApplicationURL |
Application access URL | http://ec2-54-123-45-67.compute-1.amazonaws.com/ |
PublicIpAddress |
Instance public IP | 54.123.45.67 |
PublicDnsName |
Instance public DNS | ec2-54-123-45-67.compute-1.amazonaws.com |
InstanceId |
EC2 instance ID | i-0123456789abcdef0 |
SecurityGroupId |
Security group ID | sg-0123456789abcdef0 |
SSMSessionCommand |
Command to start SSM session | aws ssm start-session --target i-... |
Monitoring and Logs¶
Application Logs¶
Sandbox Edition:
System Logs¶
View instance startup logs:
View system messages:
CloudWatch Logs¶
Application logs are automatically sent to CloudWatch Logs:
- Go to CloudWatch console
- Click Log groups
- Look for
/aletyx/application
CloudWatch Metrics¶
EC2 Metrics: - CPUUtilization - NetworkIn/NetworkOut - DiskReadBytes/DiskWriteBytes - StatusCheckFailed
Updating Your Deployment¶
Updating CloudFormation Stack¶
To change parameters (e.g., instance size, security rules):
- Go to CloudFormation console
- Select your stack
- Click Update
- Choose Use current template
- Click Next
- Modify parameters
- Click Next → Next → Update stack
Note: Some changes require instance replacement (e.g., instance type change causes brief downtime)
Updating to New AMI Version¶
When new AMI versions are released:
- Update Stack with new AMI ID
- Or: Delete and recreate stack (ensure data is backed up)
Cost Management¶
Sandbox Edition Billing¶
Pay-as-you-go hourly billing includes:
- EC2 instance hours (e.g., t3.large)
- EBS storage (20 GB gp3 volume)
- Data transfer (minimal for testing)
- Marketplace software fee (hourly)
Stop instances when not in use to save costs:
# Stop instance
aws ec2 stop-instances --instance-ids i-xxx
# Start instance
aws ec2 start-instances --instance-ids i-xxx
Note: Stopping instances stops EC2 charges but EBS storage charges continue.
Deleting Your Deployment¶
To completely remove all resources and stop all charges:
- Go to CloudFormation console
- Select your stack
- Click Delete
- Confirm deletion
This removes:
- EC2 instance (terminated)
- EBS volumes (deleted if DeleteOnTermination: true)
- Security groups
- IAM roles
- Route 53 records (if created)
Next Steps¶
After deployment, explore these features:
- Enable SSL/HTTPS: SSL/HTTPS Configuration
- Security Best Practices: Security Guide
- Troubleshooting: Troubleshooting Guide
- Decision Control Overview: /decision-control/overview/
- API Integration: /decision-control/integration-and-apis/
- Governance Workflow: /decision-control/governance-workflow/
- Usage Scenarios: /decision-control/usage-scenarios/
Support¶
- AWS Marketplace: Contact via product listing
- Documentation: https://docs.aletyx.ai
- Email: support@aletyx.com