Skip to content

release: v6.2.0 — governance profiles, telemetry endpoint_type, deploy-client hardening#336

Closed
saurabhjain1592 wants to merge 1 commit intomainfrom
sync/enterprise-20260408-210750-24158773941
Closed

release: v6.2.0 — governance profiles, telemetry endpoint_type, deploy-client hardening#336
saurabhjain1592 wants to merge 1 commit intomainfrom
sync/enterprise-20260408-210750-24158773941

Conversation

@saurabhjain1592
Copy link
Copy Markdown
Member

Sync from Enterprise Repository

This PR syncs changes from the enterprise repository to the Community repository.

Summary

  • Commits synced: 10
  • Files changed: 269

Review Checklist

  • Changes look correct
  • No enterprise-only content included
  • CI checks pass

Auto-generated by sync-community-repo workflow (ADR-016)

@saurabhjain1592 saurabhjain1592 added the community-sync Sync from enterprise repository label Apr 8, 2026
- IpProtocol: tcp
FromPort: 22
ToPort: 22
CidrIp: 0.0.0.0/0
Description: 'HTTPS from AxonFlow in same VPC'
SecurityGroupEgress:
- IpProtocol: -1
CidrIp: 0.0.0.0/0
Comment on lines +221 to +307
EC2Instance:
Type: AWS::EC2::Instance
Properties:
ImageId: !FindInMap [RegionConfig, !Ref 'AWS::Region', AMI]
InstanceType: !Ref InstanceType
IamInstanceProfile: !Ref EC2InstanceProfile
KeyName: !If [HasKeyPair, !Ref KeyPairName, !Ref 'AWS::NoValue']
SubnetId: !If [UseCustomSubnet, !Ref SubnetId, !Ref 'AWS::NoValue']
SecurityGroupIds:
- !If [IsSaaSMode, !Ref SaaSSecurityGroup, !Ref InVpcSecurityGroup]
UserData:
Fn::Base64: !Sub |
#!/bin/bash
set -e

# Log all output
exec > >(tee /var/log/user-data.log)
exec 2>&1

echo "================================"
echo "AxonFlow Demo Client Setup"
echo "Client: ${ClientType}"
echo "Environment: ${Environment}"
echo "Mode: ${DeploymentMode}"
echo "================================"

# Update system
apt-get update
DEBIAN_FRONTEND=noninteractive apt-get upgrade -y

# Install Docker
echo "Installing Docker..."
apt-get install -y apt-transport-https ca-certificates curl software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
echo "deb [arch=amd64 signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | tee /etc/apt/sources.list.d/docker.list > /dev/null
apt-get update
apt-get install -y docker-ce docker-ce-cli containerd.io

# Install Docker Compose
echo "Installing Docker Compose..."
curl -L "https://github.com/docker/compose/releases/download/v2.23.0/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
chmod +x /usr/local/bin/docker-compose

# Install AWS CLI v2. Ubuntu 24.04 (Noble) removed the legacy
# 'awscli' package from its repos, so we download the official
# installer from AWS.
echo "Installing AWS CLI v2..."
apt-get install -y unzip
cd /tmp
curl -s "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o awscliv2.zip
unzip -q -o awscliv2.zip
./aws/install
rm -rf aws awscliv2.zip
cd -

# Install nginx and certbot for reverse proxy with SSL
echo "Installing nginx and certbot..."
apt-get install -y nginx certbot python3-certbot-nginx
systemctl enable nginx

# Install CloudWatch agent
echo "Installing CloudWatch agent..."
wget https://s3.amazonaws.com/amazoncloudwatch-agent/ubuntu/amd64/latest/amazon-cloudwatch-agent.deb
dpkg -i -E ./amazon-cloudwatch-agent.deb

# Create deployment directory
mkdir -p /opt/axonflow
chown -R ubuntu:ubuntu /opt/axonflow

# Create marker file to indicate setup complete
echo "Setup completed at $(date)" > /opt/axonflow/setup-complete.txt

# Signal completion
echo "✅ EC2 instance setup complete"
echo "Ready for application deployment"

Tags:
- Key: Name
Value: !Sub '${ClientType}-${Environment}'
- Key: Environment
Value: !Ref Environment
- Key: Client
Value: !Ref ClientType
- Key: DeploymentMode
Value: !Ref DeploymentMode
- Key: ManagedBy
Value: CloudFormation
Comment on lines +221 to +307
EC2Instance:
Type: AWS::EC2::Instance
Properties:
ImageId: !FindInMap [RegionConfig, !Ref 'AWS::Region', AMI]
InstanceType: !Ref InstanceType
IamInstanceProfile: !Ref EC2InstanceProfile
KeyName: !If [HasKeyPair, !Ref KeyPairName, !Ref 'AWS::NoValue']
SubnetId: !If [UseCustomSubnet, !Ref SubnetId, !Ref 'AWS::NoValue']
SecurityGroupIds:
- !If [IsSaaSMode, !Ref SaaSSecurityGroup, !Ref InVpcSecurityGroup]
UserData:
Fn::Base64: !Sub |
#!/bin/bash
set -e

# Log all output
exec > >(tee /var/log/user-data.log)
exec 2>&1

echo "================================"
echo "AxonFlow Demo Client Setup"
echo "Client: ${ClientType}"
echo "Environment: ${Environment}"
echo "Mode: ${DeploymentMode}"
echo "================================"

# Update system
apt-get update
DEBIAN_FRONTEND=noninteractive apt-get upgrade -y

# Install Docker
echo "Installing Docker..."
apt-get install -y apt-transport-https ca-certificates curl software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
echo "deb [arch=amd64 signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | tee /etc/apt/sources.list.d/docker.list > /dev/null
apt-get update
apt-get install -y docker-ce docker-ce-cli containerd.io

# Install Docker Compose
echo "Installing Docker Compose..."
curl -L "https://github.com/docker/compose/releases/download/v2.23.0/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
chmod +x /usr/local/bin/docker-compose

# Install AWS CLI v2. Ubuntu 24.04 (Noble) removed the legacy
# 'awscli' package from its repos, so we download the official
# installer from AWS.
echo "Installing AWS CLI v2..."
apt-get install -y unzip
cd /tmp
curl -s "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o awscliv2.zip
unzip -q -o awscliv2.zip
./aws/install
rm -rf aws awscliv2.zip
cd -

# Install nginx and certbot for reverse proxy with SSL
echo "Installing nginx and certbot..."
apt-get install -y nginx certbot python3-certbot-nginx
systemctl enable nginx

# Install CloudWatch agent
echo "Installing CloudWatch agent..."
wget https://s3.amazonaws.com/amazoncloudwatch-agent/ubuntu/amd64/latest/amazon-cloudwatch-agent.deb
dpkg -i -E ./amazon-cloudwatch-agent.deb

# Create deployment directory
mkdir -p /opt/axonflow
chown -R ubuntu:ubuntu /opt/axonflow

# Create marker file to indicate setup complete
echo "Setup completed at $(date)" > /opt/axonflow/setup-complete.txt

# Signal completion
echo "✅ EC2 instance setup complete"
echo "Ready for application deployment"

Tags:
- Key: Name
Value: !Sub '${ClientType}-${Environment}'
- Key: Environment
Value: !Ref Environment
- Key: Client
Value: !Ref ClientType
- Key: DeploymentMode
Value: !Ref DeploymentMode
- Key: ManagedBy
Value: CloudFormation
@saurabhjain1592
Copy link
Copy Markdown
Member Author

Duplicate of #337 — both were created by accidental double-trigger of the sync workflow. Closing this one in favor of fresh sync to be run under explicit approval.

@saurabhjain1592 saurabhjain1592 deleted the sync/enterprise-20260408-210750-24158773941 branch April 10, 2026 00:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

community-sync Sync from enterprise repository

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants