Created on
07-25-2025
07:20 AM
Edited on
08-27-2025
01:04 AM
By
Jean-Philippe_P
Description | This article describes launching FortiGate VM with a FortiFlex license in AWS using cloudinit. |
Scope | FortiGate VM. |
Solution |
Set up IAM roles as this needs S3 bucket read access.
{ "Version": "2012-10-17", "Statement": [ { "Effect": "Allow", "Action": [ "s3:Get*", "s3:List*" ], "Resource": "*" } ] }
To install a FortiFlex license during bootstrap, the following script can be used, also upload the FortiFlex token and pre-config and post-config files. Pre-config file is important so that the FortiGate VM can connect to the FortiFlex and download the license file.
{ "bucket": "mybucket", <--- S3 bucket name. "region": "us-east-1", "license-token":"<FortiFlex Token>", "config": "/FGT-Config.txt" <--- FortiGate config file. }
When using pre-config, JSON format is not supported in user data, hence it is recommended to use MIME multipart as below.
Content-Type: multipart/mixed; boundary="==AWS==" --==AWS== config system global --==AWS== LICENSE-TOKEN: XXXXXXX --==AWS== config system interface --==AWS==--
Below is the output, post successful execution.
Related document: Bootstrapping the FortiGate-VM at initial bootup using user data |
The Fortinet Security Fabric brings together the concepts of convergence and consolidation to provide comprehensive cybersecurity protection for all users, devices, and applications and across all network edges.
Copyright 2025 Fortinet, Inc. All Rights Reserved.