You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: products/terraform/docs/swfw/azure/cloudngfw/modules/name_templater.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -61,7 +61,7 @@ As you can see:
61
61
* the `prefix` key is just a placeholder that eventually is replaced with the value of `name_prefix`
62
62
* the `__random__` string is replaced with a name of a [random pet](https://registry.terraform.io/providers/hashicorp/random/latest/docs/resources/pet) (in case you need to randomize some name, for testing purposes for example)
63
63
* the `__default__` string is replaced with a resource abbreviation.
64
-
This abbreviations are defined with `var.abbreviations` variable. The module contains basic abbreviations following Microsoft suggestions, but they can be overridden with custom definitions.
64
+
This abbreviations are defined with `var.abbreviations` variable. The module contains basic abbreviations following Microsoft suggestions, but they can be overriden with custom definitions.
65
65
The important part is that the `resource_type` has to match an entry in `abbreviations` variable, otherwise the abbreviation will be replaced with an empty string.
66
66
67
67
To create the actual resource name the following code can be used:
This map contains basic, as well as some optional Firewall parameters. Both types contain sane defaults.
213
213
Nevertheless they should be at least reviewed to meet deployment requirements.
214
214
215
-
List of either required or important properties:
215
+
List of either required or important properties:
216
216
217
217
-`size` - (`string`, optional, defaults to `Standard_D3_v2`) Azure VM size (type). Consult the *VM-Series
218
218
Deployment Guide* as only a few selected sizes are supported.
@@ -231,7 +231,7 @@ List of either required or important properties:
231
231
232
232
For more details on bootstrapping [see documentation](https://docs.paloaltonetworks.com/vm-series/10-2/vm-series-deployment/bootstrap-the-vm-series-firewall/create-the-init-cfgtxt-file/init-cfgtxt-file-components).
233
233
234
-
List of other, optional properties:
234
+
List of other, optional properties:
235
235
236
236
-`avset_id` - (`string`, optional, default to `null`) identifier of the Availability Set to use.
237
237
-`capacity_reservation_group_id` - (`string`, optional, defaults to `null`) specifies the ID of the Capacity Reservation Group
@@ -250,7 +250,7 @@ List of other, optional properties:
250
250
-`identity_type` - (`string`, optional, defaults to `SystemAssigned`) type of Managed Service Identity that
251
251
should be configured on this VM. Can be one of "SystemAssigned", "UserAssigned" or
252
252
"SystemAssigned, UserAssigned".
253
-
-`identity_ids` - (`list`, optional, defaults to `[]`) a list of User Assigned Managed Identity IDs to be
253
+
-`identity_ids` - (`list`, optional, defaults to `[]`) a list of User Assigned Managed Identity IDs to be
254
254
assigned to this VM. Required only if `identity_type` is not "SystemAssigned".
255
255
256
256
@@ -290,26 +290,30 @@ Interfaces will be attached to VM in the order you define here, therefore:
290
290
291
291
- The first should be the management interface, which does not participate in data filtering.
292
292
- The remaining ones are the dataplane interfaces.
293
-
293
+
294
294
Following configuration options are available:
295
295
296
296
-`name` - (`string`, required) the interface name.
297
297
-`subnet_id` - (`string`, required) ID of an existing subnet to create the interface in.
298
-
-`ip_configuration_name` - (`string`, optional, defaults to `primary`) the name of the interface IP configuration.
299
-
-`private_ip_address` - (`string`, optional, defaults to `null`) static private IP to assign to the interface. When
300
-
skipped Azure will assign one dynamically. Keep in mind that a dynamic IP is guarantied not
301
-
to change as long as the VM is running. Any stop/deallocate/restart operation might cause
302
-
the IP to change.
303
-
-`create_public_ip` - (`bool`, optional, defaults to `false`) if `true`, creates a public IP for the interface.
304
-
-`public_ip_name` - (`string`, optional, defaults to `null`) name of the public IP to associate with the
305
-
interface. When `create_public_ip` is set to `true` this will become a name of a newly
306
-
created Public IP interface. Otherwise this is a name of an existing interfaces that will
307
-
be sourced and attached to the interface. Not used when using `public_ip` module.
308
-
-`public_ip_resource_group_name` - (`string`, optional, defaults to `var.resource_group_name`) name of a Resource Group that
309
-
contains public IP that that will be associated with the interface. Used only when
310
-
`create_public_ip` is `false`.
311
-
-`public_ip_id` - (`string`, optional, defaults to `null`) ID of the public IP to associate with the
312
-
interface. Property is used when public IP is not created or sourced within this module.
298
+
- ip_configurations - (`map`, required) A map that contains the IP configurations for the interface.
299
+
-`name` - (`string`, optional, defaults to `primary`) the name of the interface IP configuration.
300
+
-`primary` - (`bool`, optional, defaults to `true`) sets the current IP configuration as the primary
301
+
one.
302
+
-`private_ip_address` - (`string`, optional, defaults to `null`) static private IP to assign to the interface.
303
+
When skipped Azure will assign one dynamically. Keep in mind that a dynamic IP is
304
+
guaranteed not to change as long as the VM is running. Any stop/deallocate/restart
305
+
operation might cause the IP to change.
306
+
-`create_public_ip` - (`bool`, optional, defaults to `false`) if `true`, creates a public IP for the interface.
307
+
**Note!** When you define multiple IP configurations, exactly one must be the primary.
308
+
-`public_ip_name` - (`string`, optional, defaults to `null`) name of the public IP to associate with the
309
+
interface. When `create_public_ip` is set to `true` this will become a name of a newly
310
+
created Public IP interface. Otherwise this is a name of an existing interfaces that will
311
+
be sourced and attached to the interface. Not used when using `public_ip` module.
312
+
-`public_ip_resource_group_name` - (`string`, optional, defaults to `var.resource_group_name`) name of a Resource Group that
313
+
contains public IP that that will be associated with the interface. Used only when
314
+
`create_public_ip` is `false`.
315
+
-`public_ip_id` - (`string`, optional, defaults to `null`) ID of the public IP to associate with the
316
+
interface. Property is used when public IP is not created or sourced within this module.
313
317
-`attach_to_lb_backend_pool` - (`bool`, optional, defaults to `false`) set to `true` if you would like to associate this
314
318
interface with a Load Balancer backend pool.
315
319
-`lb_backend_pool_id` - (`string`, optional, defaults to `null`) ID of an existing backend pool to associate the
@@ -327,17 +331,49 @@ Example:
327
331
{
328
332
name = "fw-mgmt"
329
333
subnet_id = azurerm_subnet.my_mgmt_subnet.id
330
-
public_ip_name = "fw-mgmt-pip"
331
-
create_public_ip = true
334
+
ip_configurations = {
335
+
primary-ip = {
336
+
name = "primary-ip"
337
+
primary = true
338
+
create_public_ip = true
339
+
public_ip_name = "fw-mgmt-pip"
340
+
}
332
341
},
333
342
# public interface reusing an existing public IP resource
0 commit comments