Technical Tip: Bootstrapping FortiGate VM using FortiFlex license in AWS using cloudinit
| 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 |
