release: v6.2.0 — governance profiles, telemetry endpoint_type, deploy-client hardening#336
Closed
saurabhjain1592 wants to merge 1 commit intomainfrom
Closed
release: v6.2.0 — governance profiles, telemetry endpoint_type, deploy-client hardening#336saurabhjain1592 wants to merge 1 commit intomainfrom
saurabhjain1592 wants to merge 1 commit intomainfrom
Conversation
…y-client hardening
| - 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 |
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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Sync from Enterprise Repository
This PR syncs changes from the enterprise repository to the Community repository.
Summary
Review Checklist
Auto-generated by sync-community-repo workflow (ADR-016)