CloudFormation Templates to generate all resources needed to run the MetaDefender AMI.
IAM roles are build in order to:
- allow EC2 instance to update lambda function
- invoke DeactivateLambda function execution
Launch a MetaDefender Core instance using a predefined AMI. Applies the license keys and generates the additional resource (DeactivateLambda, DeactivateEventRule, IAM Profile, SG, etc.)
VPC:
- Creates a public subnet and 2 private subnets in 2 different AZs.
EC2:
- Launches 2 instances of MetaDefender Core
- Each instance is deployed in a separated AZ, in one of the new created private subnets
- Launchesz OPSWAT Central Management in the public subnet
- Activates Central Management and registers the 2 instances of MetaDefender Core
- Retrieves all the engines and workflows
VPC:
- Creates public and private subnets
- Based on quickstart-aws-vpc
EC2:
- Launches OPSWAT Central Management in the public subnet
- Activates Central Management
- Retrieves all the engines and workflows
Autoscaling Group:
- Launches 1 instance of MetaDefender Core
- Activates the product
- Attaches it to OPSWAT Central Management
- Adds it to ELB
- CPU High/Low alerts defined to scale up or down the deployment
ELB:
- Load balances all active MetaDefender Core instances
- Sticky session is enabled
The predefined flow:
- EC2 instance has EC2UserData enabled and the boot script will:
- Change password from default to instanceId at first run
- Activate the product at each run
- Update Lambda environment variables with the new deploymentId
- Update event rule to trigger lambda function only for the generated EC2 instance
- Lambda
- Expects the activation key and deploymentId to be provided as environment variables
- Calls MetaDefender Activation Server's Deactivate API
- The AMI used for this script has MetaDefender running on the default port (8008).
- All the used EC2UserData scripts are defined added inline in the CloudFormation template for visibility. The scripts are also available as shell/Powershell separately.
In the AWS CloudFormation User Guide, you can view more information about the following topics:
- Learn how to use templates to create AWS CloudFormation stacks using the AWS Management Console or AWS Command Line Interface (AWS CLI).
- To view all the supported AWS resources and their properties, see the Template Reference.
For specific product questions or issues please contact support.