github.com/nathanielks/terraform@v0.6.1-0.20170509030759-13e1a62319dc/website/source/docs/providers/aws/r/emr_instance_group.html.md (about)

     1  ---
     2  layout: "aws"
     3  page_title: "AWS: aws_emr_instance_group"
     4  sidebar_current: "docs-aws-resource-emr-instance-group"
     5  description: |-
     6    Provides an Elastic MapReduce Cluster Instance Group
     7  ---
     8  
     9  # aws\_emr\_instance\_group
    10  
    11  Provides an Elastic MapReduce Cluster Instance Group configuration.
    12  See [Amazon Elastic MapReduce Documentation](https://aws.amazon.com/documentation/emr/) for more information.
    13  
    14  ~> **NOTE:** At this time, Instance Groups cannot be destroyed through the API nor
    15  web interface. Instance Groups are destroyed when the EMR Cluster is destroyed.
    16  Terraform will resize any Instance Group to zero when destroying the resource.
    17  
    18  ## Example Usage
    19  
    20  ```hcl
    21  resource "aws_emr_instance_group" "task" {
    22    cluster_id     = "${aws_emr_cluster.tf-test-cluster.id}"
    23    instance_count = 1
    24    instance_type  = "m3.xlarge"
    25    name           = "my little instance group"
    26  }
    27  ```
    28  
    29  ## Argument Reference
    30  
    31  The following arguments are supported:
    32  * `name` (Required) Human friendly name given to the instance group. Changing this forces a new resource to be created.
    33  * `cluster_id` (Required) ID of the EMR Cluster to attach to. Changing this forces a new resource to be created.
    34  * `instance_type` (Required) The EC2 instance type for all instances in the instance group. Changing this forces a new resource to be created.
    35  * `instance_count` (Optional) Target number of instances for the instance group. Defaults to 0.
    36  * `ebs_optimized` (Optional) Indicates whether an Amazon EBS volume is EBS-optimized. Changing this forces a new resource to be created.
    37  * `ebs_config` (Optional) One or more `ebs_config` blocks as defined below. Changing this forces a new resource to be created.
    38  
    39  `ebs_config` supports the following:
    40  * `iops` - (Optional) The number of I/O operations per second (IOPS) that the volume supports.
    41  * `size` - (Optional) The volume size, in gibibytes (GiB). This can be a number from 1 - 1024. If the volume type is EBS-optimized, the minimum value is 10.
    42  * `type` - (Optional) The volume type. Valid options are 'gp2', 'io1' and 'standard'.
    43  * `volumes_per_instance` - (Optional) The number of EBS Volumes to attach per instance.
    44  
    45  ## Attributes Reference
    46  
    47  The following attributes are exported:
    48  
    49  * `id` - The EMR Instance ID
    50  
    51  * `running_instance_count` The number of instances currently running in this instance group.
    52  
    53  * `status` The current status of the instance group.