Creating S3 buckets with license and firewall configurations
To create S3 buckets with license and firewall configurations:
- On the AWS console, create an Amazon S3 bucket at the root level for the bootstrap files.
- Upload the license file and configuration file(s) to the S3 bucket. This example uploads one license file and two configuration files. The example has the following FortiOS CLI command statement in the config file:
config sys global
set hostname cloudinit
end
This is to set a hostname as part of initial configuration at first-time launch.
- Amazon S3 creates the bucket in a region you specify. You can choose any AWS region that is geographically close to you to optimize latency, minimize costs, or address regulatory requirements. To choose a region, use the following code:
{
"bucket" : "conf",
"region" : "us-east-2",
"license" : "/FGVM020000130370.lic",
"config" : "/fgtconfig-init.txt"
}
Although the S3 bucket and the firewall can be in different regions, keeping them in the same region is recommended to speed up the bootstrapping process.