How to implement BlueArch Alerts Engine AMI


Running the CloudFormation Template in the Organization Manager (Root) Account

  1. Navigate to the AWS Console, search for CloudFormation, and click on it.
  2. Click the Create stack button.
  3. Choose Upload a template file and click Choose file.
  4. If you do not have Trusted Access with AWS Organizations to use service-managed permissions (Doc reference), this banner will appear: Trusted Access with AWS Organizations
  5. Select Activate trusted access. Trusted access is successfully activated when the following banner displays: Trusted Access with AWS Organizations
  6. Select the manager-stackset.yml file and click Next.
  7. Fill in the parameters mentioned in the next section and click Next.
  8. Click Next again.
  9. Check the box I acknowledge that AWS CloudFormation might create IAM resources and click Create stack.
  10. Wait for the stack to be created.

Running more than one instance of the application

CloudFormation Parameters


Organization Parameters

Amazon EC2 Configuration

Alerts Engine General Configuration

Detect Idle RDS Parameters

Detect Underutilized RDS Parameters

Detect Idle Application Load Balancers Parameters

Architectural Diagram

BlueArch Alerts Engine AMI Product Infrastructure.

Resources Created by the CloudFormation StackSet


Resource Description
ExcelBucket The S3 Bucket where Alerts Engine will store its Excel report files.
EC2Role IAM Role that allows the application to interact with the Alerts Engine resources inside the current account.
EC2InstanceProfile Instance profile for EC2Role.
EC2LaunchTemplate The launch template for the current AMI Product.
EC2AutoScalingGroup AutoScalingGroup resource that will scale in and scale out the Alerts Engine Application.
ScaleIn8h EC2AutoScalingGroup Scheduled Action (CRON) to scale the application in every day at 8 AM.
EC2ScaleDownPolicy EC2AutoScalingGroup Scaling Down Policy - The application will trigger this policy when it finishes running, terminating the instances.
SNSEmailTopic AWS SNS Topic - The application will send the excel report file through this topic every day to all emails inside the EMailList Parameter.
CrossAccountAccessRoleForBlueArch IAM Role that allows the application to assume it and collect the necessary data for the application to work.
Multiple SSM Parameters Refer to all parameters you filled in the CloudFormation Parameters section.
BlueArchRoleStackSet CloudFormation Stackset that will deploy the CrossAccountAccessRoleForBlueArch in all accounts inside the organization. More information about StackSets.
TaskTrackingDynamoDBTable DynamoDB table that will store the running instance IDs and its current tasks statuses.
AccountsFIFOQueue SQS FIFO Queue that will store the AWS account ids that will be scanned by the application.
SQSAutoScalingPolicy AutoScaling Policy that will scale out the EC2AutoScalingGroup based on the number of AWS account ids in the queue.
SQSAutoScalingAlarm CloudWatch Alarm that will trigger the SQSAutoScalingPolicy based on the AWS account ids in the queue.
EFS EFS File System that will store the application files.
MountEFS EFS Mount Target that will be used by the EC2 instances to mount the EFS File System.

Pricing


Click here to check the pricing estimations based on the Default values (typical deployment).

Starting the Application


Once you have created the CloudFormation StackSet in the Organization manager account, the application will start automatically via the EC2 AutoScaling Group.

Stopping the Application


It’s unnecessary to stop the application manually. It will stop automatically after it finishes running due to the EC2 AutoScaling Group scale-down policy.

How the Application Works


The application collects resources details and metrics from all accounts, stores them in the S3 bucket, processes the collected information, and sends alerts to the emails listed in the Email list parameter. Once the application finishes running, you are going to receive a temporary S3 Signed URL to download the Excel report file, in your email. All report files are also stored in the S3 bucket, and you can find their URLs in the Output CloudFormation tab. To check which AWS features are supported in the current version, check the Supported Resources section at the bottom of the page.

Customer Information Disclaimer


This product collects your name and email address. This information is sent to and stored by BlueArch. This information will only be used to contact the buyer in regards to the Alerting Engine.

How to remove everything


  1. Empty the S3 bucket created by the CloudFormation StackSet:
    1. Navigate to the AWS Console, search for S3, and click on it.
    2. Click on the bluearchio-alerts-engine bucket.
    3. Click on the Empty button.
    4. Type permanently delete in the confirmation box and click Empty.
  2. Delete the Cloudformation Stack you created:
    1. Navigate to the AWS Console, search for CloudFormation, and click on it.
    2. Under Stack section, click on the BlueArch Alerts Engine you’ve created before.
    3. Click on the Delete button.
    4. Wait for the stack to be deleted.

Checking the Logs


  1. Open the AWS Console, search for CloudWatch, and click on it.
  2. Click on Logs/Log groups on the left side menu.
  3. Click the alerts_engine log group.
  4. Check the latest log stream to see the logs.

Supported Resources in the Current Version (v1.3.1):


EC2 Instances
RDS
EBS
IAM Roles
Application Load Balancer