github.com/vtorhonen/terraform@v0.9.0-beta2.0.20170307220345-5d894e4ffda7/website/source/docs/providers/aws/r/db_option_group.html.markdown (about)

     1  ---
     2  layout: "aws"
     3  page_title: "AWS: aws_db_option_group"
     4  sidebar_current: "docs-aws-resource-db-option-group"
     5  ---
     6  
     7  # aws\_db\_option\_group
     8  
     9  Provides an RDS DB option group resource.
    10  
    11  ## Example Usage
    12  
    13  ```
    14  resource "aws_db_option_group" "bar" {
    15    name                     = "option-group-test-terraform"
    16    option_group_description = "Terraform Option Group"
    17    engine_name              = "sqlserver-ee"
    18    major_engine_version     = "11.00"
    19  
    20    option {
    21      option_name = "Timezone"
    22  
    23      option_settings {
    24        name  = "TIME_ZONE"
    25        value = "UTC"
    26      }
    27    }
    28  
    29    option {
    30      option_name = "TDE"
    31    }
    32  }
    33  ```
    34  
    35  ~> **Note**: Any modifications to the `db_option_group` are set to happen immediately as we default to applying immediately.
    36  
    37  ## Argument Reference
    38  
    39  The following arguments are supported:
    40  
    41  * `name` - (Required) The name of the Option group to be created.
    42  * `option_group_description` - (Required) The description of the option group.
    43  * `engine_name` - (Required) Specifies the name of the engine that this option group should be associated with..
    44  * `major_engine_version` - (Required) Specifies the major version of the engine that this option group should be associated with.
    45  * `option` - (Optional) A list of Options to apply.
    46  * `tags` - (Optional) A mapping of tags to assign to the resource.
    47  
    48  Option blocks support the following:
    49  
    50  * `option_name` - (Required) The Name of the Option (e.g. MEMCACHED).
    51  * `option_settings` - (Optional) A list of option settings to apply.
    52  * `port` - (Optional) The Port number when connecting to the Option (e.g. 11211).
    53  * `db_security_group_memberships` - (Optional) A list of DB Security Groups for which the option is enabled.
    54  * `vpc_security_group_memberships` - (Optional) A list of VPC Security Groups for which the option is enabled.
    55  
    56  Option Settings blocks support the following:
    57  
    58  * `name` - (Optional) The Name of the setting.
    59  * `value` - (Optional) The Value of the setting.
    60  
    61  ## Attributes Reference
    62  
    63  The following attributes are exported:
    64  
    65  * `arn` - The ARN of the db option group.
    66  
    67  ## Import
    68  
    69  DB Option groups can be imported using the `name`, e.g.
    70  
    71  ```
    72  $ terraform import aws_db_option_group.bar mysql-option-group
    73  ```