Skip to content

Commit 2bb13e4

Browse files
jayonthenetjayonthenet
andauthored
Instance types now configurable (#9)
Instance types now configurable --------- Signed-off-by: jayonthenet <jay@humanitec.com> Co-authored-by: jayonthenet <jay@humanitec.com>
1 parent 0dc8734 commit 2bb13e4

File tree

8 files changed

+32
-2
lines changed

8 files changed

+32
-2
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@
88
*.tfvars
99
terraform.rc
1010
github-app-credentials.json
11+
**/.DS_Store

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,7 @@ Once you are finished with the reference architecture, you can remove all provis
210210
| aws\_account\_id | AWS Account (ID) to use | `string` | n/a | yes |
211211
| aws\_region | AWS Region to deploy into | `string` | n/a | yes |
212212
| humanitec\_org\_id | Humanitec Organization ID | `string` | n/a | yes |
213+
| instance\_types | List of EC2 instances types to use for EKS nodes | `list(string)` | <pre>[<br> "t3.large"<br>]</pre> | no |
213214
<!-- END_TF_DOCS -->
214215

215216
## Learn more

examples/with-backstage/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,5 +138,6 @@ Once you are finished with the reference architecture, you can remove all provis
138138
| github\_org\_id | GitHub org id | `string` | n/a | yes |
139139
| humanitec\_ci\_service\_user\_token | Humanitec CI Service User Token | `string` | n/a | yes |
140140
| humanitec\_org\_id | Humanitec Organization ID | `string` | n/a | yes |
141+
| instance\_types | List of EC2 instances types to use for EKS nodes | `list(string)` | <pre>[<br> "t3.large"<br>]</pre> | no |
141142
| resource\_packs\_aws\_rev | Revision of the resource-packs-aws repository to use | `string` | `"refs/heads/main"` | no |
142143
<!-- END_TF_DOCS -->

examples/with-backstage/main.tf

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
module "base" {
44
source = "../../modules/base"
55

6-
region = var.aws_region
6+
region = var.aws_region
7+
instance_types = var.instance_types
78
}
89

910
provider "kubernetes" {

examples/with-backstage/terraform.tfvars.example

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,10 @@ humanitec_ci_service_user_token = ""
1414
# Humanitec Organization ID
1515
humanitec_org_id = ""
1616

17+
# List of EC2 instances types to use for EKS nodes
18+
instance_types = [
19+
"t3.large"
20+
]
21+
1722
# Revision of the resource-packs-aws repository to use
1823
resource_packs_aws_rev = "refs/heads/main"

examples/with-backstage/variables.tf

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,11 @@ variable "resource_packs_aws_rev" {
2929
type = string
3030
default = "refs/heads/main"
3131
}
32+
33+
variable "instance_types" {
34+
description = "List of EC2 instances types to use for EKS nodes"
35+
type = list(string)
36+
default = [
37+
"t3.large"
38+
]
39+
}

terraform.tfvars.example

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,9 @@ aws_account_id = ""
66
aws_region = ""
77

88
# Humanitec Organization ID
9-
humanitec_org_id = ""
9+
humanitec_org_id = ""
10+
11+
# List of EC2 instances types to use for EKS nodes
12+
instance_types = [
13+
"t3.large"
14+
]

variables.tf

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,11 @@ variable "humanitec_org_id" {
1313
description = "Humanitec Organization ID"
1414
type = string
1515
}
16+
17+
variable "instance_types" {
18+
description = "List of EC2 instances types to use for EKS nodes"
19+
type = list(string)
20+
default = [
21+
"t3.large"
22+
]
23+
}

0 commit comments

Comments
 (0)