github.com/swisspost/terratest@v0.0.0-20230214120104-7ec6de2e1ae0/examples/azure/terraform-azure-servicebus-example/variables.tf (about)

     1  # ---------------------------------------------------------------------------------------------------------------------
     2  # ENVIRONMENT VARIABLES
     3  # Define these secrets as environment variables
     4  # ---------------------------------------------------------------------------------------------------------------------
     5  
     6  # ARM_CLIENT_ID
     7  # ARM_CLIENT_SECRET
     8  # ARM_SUBSCRIPTION_ID
     9  # ARM_TENANT_ID
    10  
    11  # ---------------------------------------------------------------------------------------------------------------------
    12  # REQUIRED PARAMETERS
    13  # You must provide a value for each of these parameters.
    14  # ---------------------------------------------------------------------------------------------------------------------
    15  
    16  # ---------------------------------------------------------------------------------------------------------------------
    17  # OPTIONAL PARAMETERS
    18  # These parameters have reasonable defaults.
    19  # ---------------------------------------------------------------------------------------------------------------------
    20  
    21  variable "location" {
    22    description = "The supported azure location where the resource exists"
    23    type        = string
    24    default     = "West US2"
    25  }
    26  
    27  variable "postfix" {
    28    description = "string mitigate resource name collisions."
    29    type        = string
    30    default     = "servicebus"
    31  }
    32  
    33  variable "namespace_name" {
    34    description = "The name of the namespace."
    35    type        = string
    36    default     = "testservicebus101"
    37  }
    38  
    39  variable "sku" {
    40    description = "The SKU of the namespace. The options are: `Basic`, `Standard`, `Premium`."
    41    type        = string
    42    default     = "Standard"
    43  }
    44  
    45  variable "tags" {
    46    description = " A mapping of tags to assign to the resource."
    47    type        = map(string)
    48    default     = {}
    49  }
    50  
    51  variable "namespace_authorization_rules" {
    52    description = "List of namespace authorization rules."
    53    type = list(object({
    54      policy_name = string
    55      claims      = object({ listen = bool, manage = bool, send = bool })
    56    }))
    57    default = []
    58  }
    59  
    60  variable "topics" {
    61    description = "topics list"
    62    type = list(object({
    63      name                         = string
    64      default_message_ttl          = string //ISO 8601 format
    65      enable_partitioning          = bool
    66      requires_duplicate_detection = bool
    67      support_ordering             = bool
    68      authorization_rules = list(object({
    69        policy_name = string
    70        claims      = object({ listen = bool, manage = bool, send = bool })
    71  
    72      }))
    73      subscriptions = list(object({
    74        name                                 = string
    75        max_delivery_count                   = number
    76        lock_duration                        = string //ISO 8601 format
    77        forward_to                           = string //set with the topic name that will be used for forwarding. Otherwise, set to ""
    78        dead_lettering_on_message_expiration = bool
    79        filter_type                          = string // SqlFilter is the only supported type now.
    80        sql_filter                           = string //Required when filter_type is set to SqlFilter
    81        action                               = string
    82      }))
    83    }))
    84    default = []
    85  }