Skip to content

Commit

Permalink
Merge pull request #25255 from daftkid/f-emr_abs_config_add_sc1_type
Browse files Browse the repository at this point in the history
r/aws_emr_cluster: Add sc1 as EBS allowed volume type for AWS EMR cluster resource
  • Loading branch information
ewbankkit committed Jul 5, 2022
2 parents cdead70 + d3dd786 commit d69df6d
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .changelog/25255.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:enhancement
resource/aws_emr_cluster: Add `sc1` EBS volume support
```
9 changes: 7 additions & 2 deletions internal/service/emr/cluster_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3552,7 +3552,7 @@ resource "aws_emr_cluster" "test" {
}
master_instance_group {
instance_type = "m4.large"
instance_type = "m5.xlarge"
ebs_config {
size = 32
type = "gp2"
Expand All @@ -3567,12 +3567,17 @@ resource "aws_emr_cluster" "test" {
}
core_instance_group {
instance_count = 1
instance_type = "m4.large"
instance_type = "m5.xlarge"
ebs_config {
size = 32
type = "gp2"
volumes_per_instance = %[2]d
}
ebs_config {
size = 125
type = "sc1"
volumes_per_instance = %[2]d
}
}
depends_on = [aws_route_table_association.test]
Expand Down
1 change: 1 addition & 0 deletions internal/service/emr/validate.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,6 @@ func validEBSVolumeType() schema.SchemaValidateFunc {
"io1",
"standard",
"st1",
"sc1",
}, false)
}
2 changes: 1 addition & 1 deletion website/docs/r/emr_cluster.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -734,7 +734,7 @@ The launch specification for Spot instances in the fleet, which determines the d

* `iops` - (Optional) Number of I/O operations per second (IOPS) that the volume supports.
* `size` - (Required) Volume size, in gibibytes (GiB).
* `type` - (Required) Volume type. Valid options are `gp3`, `gp2`, `io1`, `standard` and `st1`. See [EBS Volume Types](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSVolumeTypes.html).
* `type` - (Required) Volume type. Valid options are `gp3`, `gp2`, `io1`, `standard`, `st1` and `sc1`. See [EBS Volume Types](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSVolumeTypes.html).
* `throughput` - (Optional) The throughput, in mebibyte per second (MiB/s).
* `volumes_per_instance` - (Optional) Number of EBS volumes with this configuration to attach to each EC2 instance in the instance group (default is 1).

Expand Down

0 comments on commit d69df6d

Please sign in to comment.