Skip to content

Commit 6dfd6bc

Browse files
committed
terraform/aws: Add a couple more instance types
The existing m5ad selections are still more than is needed for some workflows, so introduce a couple of smaller ones. Update the help text for these types to better reflect their current provisions. Reviewed-by: Luis Chamberlain <[email protected]> Signed-off-by: Chuck Lever <[email protected]>
1 parent 0160e6c commit 6dfd6bc

File tree

2 files changed

+42
-4
lines changed

2 files changed

+42
-4
lines changed

kconfigs/workflows/Kconfig.shared

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ if WORKFLOW_MAKE_CMD_OVERRIDE
3535

3636
config WORKFLOW_MAKE_CMD
3737
string "The make command to use when building"
38+
default "make -j 2" if TERRAFORM_AWS_INSTANCE_M5AD_LARGE
39+
default "make -j 4" if TERRAFORM_AWS_INSTANCE_M5AD_XLARGE
3840
default "make -j 8" if TERRAFORM_AWS_INSTANCE_M5AD_2XLARGE
3941
default "make -j 16" if TERRAFORM_AWS_INSTANCE_M5AD_4XLARGE
4042
default "make -j 1" if TERRAFORM_AZURE_VM_SIZE_STANDARD_DS1_V2

terraform/aws/Kconfig

Lines changed: 40 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -294,19 +294,53 @@ choice
294294
default TERRAFORM_AWS_INSTANCE_M5AD_4XLARGE if TARGET_ARCH_X86_64
295295
default TERRAFORM_AWS_INSTANCE_IS4GEN_MEDIUM if TARGET_ARCH_ARM64
296296

297+
config TERRAFORM_AWS_INSTANCE_M5AD_LARGE
298+
bool "m5ad.large"
299+
depends on TARGET_ARCH_X86_64
300+
help
301+
8 GiB RAM, 2 AMD vcpus, 1 10 GiB main drive, up to 10 Gbps
302+
network speed, and one 75 GiB NVMe drive.
303+
304+
Add more storage by selecting the TERRAFORM_AWS_ENABLE_EBS_VOLUMES
305+
option and adjusting the size and number of additional devices.
306+
307+
See https://aws.amazon.com/ec2/instance-types/m5/ for details.
308+
309+
config TERRAFORM_AWS_INSTANCE_M5AD_XLARGE
310+
bool "m5ad.xlarge"
311+
depends on TARGET_ARCH_X86_64
312+
help
313+
16 GiB RAM, 4 AMD vcpus, 1 10 GiB main drive, up to 10 Gbps
314+
network speed, and one 150 GiB NVMe drive.
315+
316+
Add more storage by selecting the TERRAFORM_AWS_ENABLE_EBS_VOLUMES
317+
option and adjusting the size and number of additional devices.
318+
319+
See https://aws.amazon.com/ec2/instance-types/m5/ for details.
320+
297321
config TERRAFORM_AWS_INSTANCE_M5AD_2XLARGE
298322
bool "m5ad.2xlarge"
299323
depends on TARGET_ARCH_X86_64
300324
help
301-
32 GiB RAM, 8 vcpus, 1 10 GiB main drive, and one additional
302-
300 GiB NVMe drive.
325+
32 GiB RAM, 8 AMD vcpus, 1 10 GiB main drive, up to 10 Gbps
326+
network speed, and one 300 GiB NVMe drive.
327+
328+
Add more storage by selecting the TERRAFORM_AWS_ENABLE_EBS_VOLUMES
329+
option and adjusting the size and number of additional devices.
330+
331+
See https://aws.amazon.com/ec2/instance-types/m5/ for details.
303332

304333
config TERRAFORM_AWS_INSTANCE_M5AD_4XLARGE
305334
bool "m5ad.4xlarge"
306335
depends on TARGET_ARCH_X86_64
307336
help
308-
64 GiB RAM, 16 vcpus, 1 10 GiB main drive, and two additional
309-
300 GiB NVMe drives.
337+
64 GiB RAM, 16 AMD vcpus, 1 10 GiB main drive, up to 10 Gbps
338+
and two 300 GiB NVMe drives.
339+
340+
Add more storage by selecting the TERRAFORM_AWS_ENABLE_EBS_VOLUMES
341+
option and adjusting the size and number of additional devices.
342+
343+
See https://aws.amazon.com/ec2/instance-types/m5/ for details.
310344

311345
config TERRAFORM_AWS_INSTANCE_IS4GEN_MEDIUM
312346
bool "is4gen.medium"
@@ -376,6 +410,8 @@ endchoice
376410

377411
config TERRAFORM_AWS_INSTANCE_TYPE
378412
string
413+
default "m5ad.large" if TERRAFORM_AWS_INSTANCE_M5AD_LARGE
414+
default "m5ad.xlarge" if TERRAFORM_AWS_INSTANCE_M5AD_XLARGE
379415
default "m5ad.2xlarge" if TERRAFORM_AWS_INSTANCE_M5AD_2XLARGE
380416
default "m5ad.4xlarge" if TERRAFORM_AWS_INSTANCE_M5AD_4XLARGE
381417
default "is4gen.medium" if TERRAFORM_AWS_INSTANCE_IS4GEN_MEDIUM

0 commit comments

Comments
 (0)