AWS API integration for dynamic firewall address object (400265)
Some new settings have been added to the CLI that will support instance information being retrieved directly from the AWS server. The IP address of a newly launched instance can be automatically added to a certain firewall address group if it meets specific requirements. The new address type is:ADDR_TYPE_AWS New CLI configuration settings:
The AWS settings config aws
set access-key set secret-key set region set vpc-id set update-interval
l access-key – AWS access key. l secret-key – AWS secret key. l region – AWS region name. l vpc-id – AWS VPC ID. l update-interval – AWS service update interval (60 – 600 sec, default = 60).
The AWS address:
config firewall address edit <address name> set type aws set filter <filter values>
The filter can be a combination of any number of conditions, as long as the total length of filter is less than 2048 bytes. The syntax for the filter is:
<key1=value1> [& <key2=value2>] [| <key3=value3>]
For each condition, it includes a key and value, the supported keys are:
- instanceId, (e.g. instanceId=i-12345678)
- instanceType, (e.g. instanceType=t2.micro)
- imageId, (e.g. imageId=ami-123456)
- keyName, (e.g. keyName=aws-key-name)
- architecture, (e.g. architecture=x86)
- subnetId, (e.g. subnetId=sub-123456)
- availabilityzone, (e.g. placement.availabilityzone=us-east-1a)
- groupname, (e.g. placement.groupname=group-name)
- tenancy, (e.g. placement.tenancy=tenancy-name)
- privateDnsName, (e.g. privateDnsName=ip-172-31-10-211.us-west-2.compute.internal)
- publicDnsName, (e.g. publicDnsName=ec2-54-202-168-254.us-west-2.compute.amazonaws.com)
- AWS instance tag, each tag includes a key and value, the format of tag set is: tag.Name=Value, maximum of 8 tags are supported.
Having trouble configuring your Fortinet hardware or have some questions you need answered? Ask your questions in the comments below!!! Want someone else to deal with it for you? Get some consulting from Fortinet GURU!
Don't Forget To Buy Your Fortinet Hardware From The Fortinet GURU