Subsections of fortianalyzer-aws-standalone-cloudformation
Introduction
Welcome
The purpose of this site is to provide a quick start guide for using Infrastructure as Code (IaC) templates located in the repo fortianalyzer-aws-standalone-cloudformation.
Reference the prerequisites and deployment sections on this site to get started.
For other documentation needs such as FortiOS administration and additional use cases, please reference docs.fortinet.com.
Prerequisites
Before attempting to create a stack with the template, a few prerequisites should be checked to ensure a successful deployment:
An AMI subscription must be active for the FortiAnalyzer license type being used in the template.
The solution requires 1 EIP to be created so ensure the AWS region being used has available capacity. Reference AWS Documentation for more information on EC2 resource limits and how to request increases.
If BYOL licensing is to be used, ensure these licenses have been registered on the support site.
Create a new S3 bucket in the same region where the template will be deployed. If the bucket is in a different region than the template deployment, bootstrapping will fail.
If BYOL licensing is to be used, upload these licenses to the root directory of the same S3 bucket from the step above.
If the FAZ will be publicly available, ensure that the PublicSubnet’s AWS route table has a default route to an AWS Internet Gateway, otherwise bootstrapping will fail. Reference AWS Documentation for further information.
If the FAZ will not be publicly available, ensure that a S3 gateway endpoint is deployed and assigned to the subnet’s AWS route table the FAZ will be deployed into. Otherwise, provide the relevant route table ID and the template will deploy a S3 gateway endpoint for you. Reference AWS Documentation for further information.
Warning
PAYG licensed instances require direct internet access to register with FortiCare successfully. BYOL and Flex can use proxies instead of direct internet access, however that requires modification to the userdata to bootstrap the proxy configuration correctly.
Deployment
Once the prerequisites have been satisfied proceed with the deployment steps below.
- To download the template, you can either clone the repo with the git command below, or download the repo as a ZIP archive. The template is in the /cloudformation folder
git clone https://github.com/FortinetCloudCSE/fortianalyzer-aws-standalone-cloudformation.gitLogin to your AWS account. In the AWS services page under All Services > Management Tools, select CloudFormation.
Select Create Stack then select with new resources.
On the Select Template page, under the Choose a Template section select Upload a template to Amazon S3 and browse to your local copy of the chosen deployment template.
On the Specify Details page, you will be prompted for a stack name and parameters for the deployment. We are using the ‘FortiAnalyzer_Standalone_ExistingVPC.template.json’ template which deploys a FAZ into an existing VPC’s public & private subnets and gives options for configuring the instance settings.
Warning
If the FAZ is deployed into a public subnet, this hould have a default route to an Internet Gateway or bootstrapping the config and license of the FAZ will fail. If the FAZ is deployed into a private subnet, this subnet should have a S3 Gateway endpoint associated to the subnet's route table. Otherwise, provide the relevant route table ID and the template will deploy a S3 gateway endpoint for you. Reference [AWS Documentation](https://docs.aws.amazon.com/vpc/latest/privatelink/vpc-endpoints-s3.html) for further information.
In the FortiAnalyzer Instance Configuration parameters section, we have selected an Instance Type and Key Pair to use, chose to encrypt both OS and Log disks, as well as Flex licensing. Notice we are prompted for the licensing type which we are going with tokens. In our case we do not need to fill out the InitS3Bucket parameter.
In the Interface IP Configuration for the FortiAnalyzer parameters section, we are going with the defaults in this example as the subnet addressing matches. This IP will be the primary IP assigned to the FortiAnalyzer ENI.
On the Options page, you can scroll to the bottom and select Next.
On the Review page, scroll down to the capabilities section. As the template will create IAM resources, you need to acknowledge this by checking the box next to ‘I acknowledge that AWS CloudFormation might create IAM resources’ and then click Submit.
On the main AWS CloudFormation console, you will now see your stack being created. You can monitor the progress by selecting your stack and then select the Events tab.
- Once the stack creation has completed successfully, select the Outputs tab to get the login information for the FortiAnalyzer instance.
- This concludes the template deployment example.









