Skip to content

Commit 642aa97

Browse files
jayonthenetjayonthenet
andauthored
Add disk size and remove custom launch template (#11)
* Add disk size and remove custom launch template --------- Signed-off-by: jayonthenet <jay@humanitec.com> Co-authored-by: jayonthenet <jay@humanitec.com>
1 parent f1082cd commit 642aa97

File tree

12 files changed

+34
-3
lines changed

12 files changed

+34
-3
lines changed

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+
| disk\_size | Disk size in GB to use for EKS nodes | `number` | `20` | no |
213214
| instance\_types | List of EC2 instances types to use for EKS nodes | `list(string)` | <pre>[<br> "t3.large"<br>]</pre> | no |
214215
<!-- END_TF_DOCS -->
215216

examples/with-backstage/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,7 @@ 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+
| disk\_size | Disk size in GB to use for EKS nodes | `number` | `20` | no |
141142
| instance\_types | List of EC2 instances types to use for EKS nodes | `list(string)` | <pre>[<br> "t3.large"<br>]</pre> | no |
142143
| resource\_packs\_aws\_rev | Revision of the resource-packs-aws repository to use | `string` | `"refs/heads/main"` | no |
143144
<!-- END_TF_DOCS -->

examples/with-backstage/backstage-humanitec.tf

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,6 @@ module "backstage_iam_policy_ecr_create_repository" {
129129
access_key = module.base.aws_access_key_id
130130
secret_key = module.base.aws_secret_access_key
131131
resource_packs_aws_rev = var.resource_packs_aws_rev
132-
humanitec_organization = var.humanitec_org_id
133132
region = var.aws_region
134133

135134
prefix = local.res_def_prefix
@@ -150,7 +149,6 @@ module "backstage_iam_role_service_account" {
150149
access_key = module.base.aws_access_key_id
151150
secret_key = module.base.aws_secret_access_key
152151
resource_packs_aws_rev = var.resource_packs_aws_rev
153-
humanitec_organization = var.humanitec_org_id
154152
region = var.aws_region
155153

156154
policy_classes = ["default"]

examples/with-backstage/main.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ module "base" {
55

66
region = var.aws_region
77
instance_types = var.instance_types
8+
disk_size = var.disk_size
89
}
910

1011
provider "kubernetes" {

examples/with-backstage/terraform.tfvars.example

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ aws_account_id = ""
55
# AWS region
66
aws_region = ""
77

8+
# Disk size in GB to use for EKS nodes
9+
disk_size = 20
10+
811
# GitHub org id
912
github_org_id = ""
1013

examples/with-backstage/variables.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,9 @@ variable "instance_types" {
3737
"t3.large"
3838
]
3939
}
40+
41+
variable "disk_size" {
42+
description = "Disk size in GB to use for EKS nodes"
43+
type = number
44+
default = 20
45+
}

main.tf

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,9 @@ provider "aws" {
2626
module "base" {
2727
source = "./modules/base"
2828

29-
region = var.aws_region
29+
region = var.aws_region
30+
instance_types = var.instance_types
31+
disk_size = var.disk_size
3032
}
3133

3234
provider "kubernetes" {

modules/base/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ Module that provides the reference architecture.
5454
| <a name="input_capacity_type"></a> [capacity\_type](#input\_capacity\_type) | Defines whether to use ON\_DEMAND or SPOT EC2 instances for EKS nodes | `string` | `"ON_DEMAND"` | no |
5555
| <a name="input_cluster_name"></a> [cluster\_name](#input\_cluster\_name) | Name for the EKS cluster | `string` | `"ref-arch"` | no |
5656
| <a name="input_cluster_version"></a> [cluster\_version](#input\_cluster\_version) | Version of the EKS cluster to deploy | `string` | `null` | no |
57+
| <a name="input_disk_size"></a> [disk\_size](#input\_disk\_size) | Disk size in GB to use for EKS nodes | `number` | `20` | no |
5758
| <a name="input_eks_public_access_cidrs"></a> [eks\_public\_access\_cidrs](#input\_eks\_public\_access\_cidrs) | List of CIDRs that can access the EKS cluster's public endpoint | `list(string)` | <pre>[<br> "0.0.0.0/0"<br>]</pre> | no |
5859
| <a name="input_environment"></a> [environment](#input\_environment) | Name of the environment to be deployed into | `string` | `"development"` | no |
5960
| <a name="input_iam_user_name"></a> [iam\_user\_name](#input\_iam\_user\_name) | Name of the IAM user to create for Humanitec EKS access | `string` | `"svc-humanitec"` | no |

modules/base/main.tf

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,9 @@ module "aws_eks" {
100100

101101
instance_types = var.instance_types
102102
capacity_type = var.capacity_type
103+
104+
disk_size = var.disk_size
105+
use_custom_launch_template = false
103106
}
104107
}
105108

modules/base/variables.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,3 +89,9 @@ variable "ingress_nginx_min_unavailable" {
8989
type = number
9090
default = 1
9191
}
92+
93+
variable "disk_size" {
94+
description = "Disk size in GB to use for EKS nodes"
95+
type = number
96+
default = 20
97+
}

0 commit comments

Comments
 (0)