» aviatrix_controller_config

The aviatrix_controller_config resource allows management of an Aviatrix Controller's configurations.

» Example Usage

# Create an Aviatrix Controller Config
resource "aviatrix_controller_config" "test_controller_config" {
  sg_management_account_name = "username"
  http_access                = true
  fqdn_exception_rule        = false
  security_group_management  = true
}
# Create an Aviatrix Controller Config with Controller Upgrade
resource "aviatrix_controller_config" "test_controller_config" {
  sg_management_account_name = "username"
  http_access                = true
  fqdn_exception_rule        = false
  security_group_management  = true
  target_version             = "latest"
}
# Create an Aviatrix Controller Config with Cloudn Backup Configuration Enabled
resource "aviatrix_controller_config" "test_controller_config" {
  backup_configuration = true
  backup_cloud_type    = 1
  backup_account_name  = "account_example"
  backup_bucket_name   = "bucket_example"
}

» Argument Reference

The following arguments are supported:

» Security Options

  • sg_management_account_name - (Optional) Select the primary access account.
  • security_group_management - (Optional) Enable to allow Controller to automatically manage inbound rules from gateways. Valid values: true, false. Default value: false.
  • http_access - (Optional) Switch for HTTP access. Valid values: true, false. Default value: false.
  • fqdn_exception_rule - (Optional) Enable/disable packets without an SNI field to pass through gateway(s). Valid values: true, false. Default value: true. For more information on this setting, please see here

» Backup

  • backup_configuration - (Optional) Switch to enable/disable controller CloudN backup config. Valid values: true, false. Default value: false.
  • backup_cloud_type - (Optional) Type of cloud service provider, requires an integer value. Use 1 for AWS.
  • backup_account_name - (Optional) Name of the cloud account in the Aviatrix controller.
  • backup_bucket_name - (Optional) S3 Bucket Name for AWS.
  • multiple_backups - (Optional) Switch to enable the Controller to backup up to a maximum of 3 rotating backups. Valid values: true, false. Default value: false.

» Misc.

  • target_version - (Optional) The release version number to which the controller will be upgraded to. If not specified, controller will not be upgraded. If set to "latest", controller will be upgraded to the latest release. Please see the Controller upgrade guide for more information.

» Attribute Reference

In addition to all arguments above, the following attributes are exported:

  • version - Current version of the controller.

» Import

Instance controller_config can be imported using controller IP, e.g. controller IP is : 10.11.12.13

$ terraform import aviatrix_controller_config.test 10-11-12-13