fortinetdev / terraform-aws-cloud-modules

Apache License 2.0
2 stars 1 forks source link

AMI search - FortiGate Federal AMI ID #1

Open FortiLatam opened 4 months ago

FortiLatam commented 4 months ago

Sometimes, when the module is searching for FortiGate AMI ID in the region, it tries to use the Federal image. This is not in all regions, for example, Canada Central doesn't happen, but in us-east-1 it happens very frequently.

lix-fortinet commented 4 months ago

Hi @FortiLatam,

Thank you for raising this issue. We will investigate and fix it on the next release.

Thanks, Xing

hgaberra commented 3 months ago

Just an FYI, we addressed this issue by using the product code and ami name as filters for AMIs. You can see the code we use here. https://github.com/FortinetCloudCSE/fortigate-aws-gwlb-terraform/blob/main/terraform/modules/ftnt_aws/fgt-gwlb/main.tf