Skip to content

Commit

Permalink
Add new ebs optimised instance types (#37)
Browse files Browse the repository at this point in the history
* Add EBS optmised types a1n,c5n,m5a,m5ad,r5,r5a,r5ad,metal
  • Loading branch information
Komorebi-E authored Mar 28, 2019
1 parent 19ae407 commit ee73d6c
Show file tree
Hide file tree
Showing 3 changed files with 76 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<!--- Provide a general summary of your changes in the Title above -->

## Description
<!--- Describe your changes in detail -->

## Related Issue
<!--- This project only accepts pull requests related to open issues -->
<!--- If suggesting a new feature or change, please discuss it in an issue first -->
<!--- If fixing a bug, there should be an issue describing it with steps to reproduce -->
<!--- Please link to the issue here: -->

## Motivation and Context
<!--- Why is this change required? What problem does it solve? -->

## How Has This Been Tested?
<!--- Please describe in detail how you tested your changes. -->
<!--- Include details of your testing environment, and the tests you ran to -->
<!--- see how your change affects other areas of the code, etc. -->

## Types of changes
<!--- What types of changes does your code introduce? Put an `x` in all the boxes that apply: -->
- [ ] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing functionality to change)

## Checklist:
<!--- Go over all the following points, and put an `x` in all the boxes that apply. -->
<!--- If you're unsure about any of these, don't hesitate to ask. We're here to help! -->
- [ ] My code follows the code style of this project.
- [ ] My change requires a change to the documentation.
- [ ] I have updated the documentation accordingly.
- [ ] I have added tests to cover my changes.
- [ ] All new and existing tests passed.
1 change: 1 addition & 0 deletions instance/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ variable "tags" {
type = "map"
default = {}
}

variable "cpu_credits" {
type = "string"
description = "The type of cpu credits to use"
Expand Down
42 changes: 42 additions & 0 deletions is_ebs_optimised/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ variable "ebs_optimized_list" {
type = "list"

default = [
"a1.medium",
"a1.large",
"a1.xlarge",
"a1.2xlarge",
"a1.4xlarge",
"c1.xlarge",
"c3.xlarge",
"c3.2xlarge",
Expand All @@ -27,6 +32,12 @@ variable "ebs_optimized_list" {
"c5d.4xlarge",
"c5d.9xlarge",
"c5d.18xlarge",
"c5n.large",
"c5n.xlarge",
"c5n.2xlarge",
"c5n.4xlarge",
"c5n.9xlarge",
"c5n.18xlarge",
"d2.xlarge",
"d2.2xlarge",
"d2.4xlarge",
Expand All @@ -35,6 +46,7 @@ variable "ebs_optimized_list" {
"f1.4xlarge",
"f1.16xlarge",
"g2.2xlarge",
"g3s.xlarge",
"g3.4xlarge",
"g3.8xlarge",
"g3.16xlarge",
Expand Down Expand Up @@ -70,18 +82,33 @@ variable "ebs_optimized_list" {
"m5.4xlarge",
"m5.12xlarge",
"m5.24xlarge",
"m5.metal",
"m5a.large",
"m5a.xlarge",
"m5a.2xlarge",
"m5a.4xlarge",
"m5a.12xlarge",
"m5a.24xlarge",
"m5ad.large",
"m5ad.xlarge",
"m5ad.2xlarge",
"m5ad.4xlarge",
"m5ad.12xlarge",
"m5ad.24xlarge",
"m5d.large",
"m5d.xlarge",
"m5d.2xlarge",
"m5d.4xlarge",
"m5d.12xlarge",
"m5d.24xlarge",
"m5d.metal",
"p2.xlarge",
"p2.8xlarge",
"p2.16xlarge",
"p3.2xlarge",
"p3.8xlarge",
"p3.16xlarge",
"p3dn.24xlarge",
"r3.xlarge",
"r3.2xlarge",
"r3.4xlarge",
Expand All @@ -97,12 +124,26 @@ variable "ebs_optimized_list" {
"r5.4xlarge",
"r5.12xlarge",
"r5.24xlarge",
"r5.metal",
"r5a.large",
"r5a.xlarge",
"r5a.2xlarge",
"r5a.4xlarge",
"r5a.12xlarge",
"r5a.24xlarge",
"r5ad.large",
"r5ad.xlarge",
"r5ad.2xlarge",
"r5ad.4xlarge",
"r5ad.12xlarge",
"r5ad.24xlarge",
"r5d.large",
"r5d.xlarge",
"r5d.2xlarge",
"r5d.4xlarge",
"r5d.12xlarge",
"r5d.24xlarge",
"r5d.metal",
"t3.nano",
"t3.micro",
"t3.small",
Expand All @@ -127,5 +168,6 @@ variable "ebs_optimized_list" {
"z1d.3xlarge",
"z1d.6xlarge",
"z1d.12xlarge",
"z1d.metal",
]
}

0 comments on commit ee73d6c

Please sign in to comment.