All of lore.kernel.org
 help / color / mirror / Atom feed
From: Luis Chamberlain <mcgrof@kernel.org>
To: Chuck Lever <cel@kernel.org>, Daniel Gomez <da.gomez@kruces.com>,
	kdevops@lists.linux.dev
Cc: Luis Chamberlain <mcgrof@kernel.org>
Subject: [PATCH 3/3] lambda: run make cloud-update
Date: Thu,  4 Sep 2025 02:00:29 -0700	[thread overview]
Message-ID: <20250904090030.2481840-4-mcgrof@kernel.org> (raw)
In-Reply-To: <20250904090030.2481840-1-mcgrof@kernel.org>

Commit dynamically generated kconfig files for aws locally.

Signed-off-by: Luis Chamberlain <mcgrof@kernel.org>
---
 .../kconfigs/Kconfig.compute.static           | 195 ++++++++++++++++++
 .../kconfigs/Kconfig.location.static          |  95 +++++++++
 2 files changed, 290 insertions(+)
 create mode 100644 terraform/lambdalabs/kconfigs/Kconfig.compute.static
 create mode 100644 terraform/lambdalabs/kconfigs/Kconfig.location.static

diff --git a/terraform/lambdalabs/kconfigs/Kconfig.compute.static b/terraform/lambdalabs/kconfigs/Kconfig.compute.static
new file mode 100644
index 00000000..7aa2de04
--- /dev/null
+++ b/terraform/lambdalabs/kconfigs/Kconfig.compute.static
@@ -0,0 +1,195 @@
+# Lambda Labs instance types (dynamically generated with capacity info)
+
+choice
+	prompt "Lambda Labs instance type"
+	default TERRAFORM_LAMBDALABS_INSTANCE_TYPE_GPU_1X_A10
+	help
+	  Select the Lambda Labs instance type for your deployment.
+	  These options are dynamically generated from the Lambda Labs API.
+	  [Available] = Has capacity in at least one region
+	  [No Capacity] = Currently no capacity available
+	  Prices shown are on-demand hourly rates in USD.
+
+# Instance types WITH available capacity:
+config TERRAFORM_LAMBDALABS_INSTANCE_TYPE_GPU_1X_A10
+	bool "gpu_1x_a10 ($0.75/hr) - 1x A10 (24 GB PCIe) [AVAILABLE]"
+	depends on !TERRAFORM_LAMBDALABS_REGION_MANUAL || (TERRAFORM_LAMBDALABS_REGION_US_WEST_1)
+	help
+	  1x A10 (24 GB PCIe)
+	  AVAILABLE in: us-west-1
+	  Price: $0.75/hr (on-demand)
+	  vCPUs: 30, Memory: 200 GiB, Storage: 1400 GiB
+
+config TERRAFORM_LAMBDALABS_INSTANCE_TYPE_GPU_1X_A100_SXM4
+	bool "gpu_1x_a100_sxm4 (Price N/A) - 1x A100 (40 GB SXM4) [AVAILABLE]"
+	depends on !TERRAFORM_LAMBDALABS_REGION_MANUAL || (TERRAFORM_LAMBDALABS_REGION_US_EAST_1 || TERRAFORM_LAMBDALABS_REGION_US_WEST_2 || TERRAFORM_LAMBDALABS_REGION_ASIA_SOUTH_1)
+	help
+	  1x A100 (40 GB SXM4)
+	  AVAILABLE in: us-east-1, us-west-2, asia-south-1
+	  Price: Price N/A (on-demand)
+	  vCPUs: 30, Memory: 200 GiB, Storage: 512 GiB
+
+config TERRAFORM_LAMBDALABS_INSTANCE_TYPE_GPU_1X_GH200
+	bool "gpu_1x_gh200 ($1.49/hr) - 1x GH200 (96 GB) [AVAILABLE]"
+	depends on !TERRAFORM_LAMBDALABS_REGION_MANUAL || (TERRAFORM_LAMBDALABS_REGION_US_EAST_3)
+	help
+	  1x GH200 (96 GB)
+	  AVAILABLE in: us-east-3
+	  Price: $1.49/hr (on-demand)
+	  vCPUs: 64, Memory: 432 GiB, Storage: 4096 GiB
+
+config TERRAFORM_LAMBDALABS_INSTANCE_TYPE_GPU_1X_H100_PCIE
+	bool "gpu_1x_h100_pcie ($2.49/hr) - 1x H100 (80 GB PCIe) [AVAILABLE]"
+	depends on !TERRAFORM_LAMBDALABS_REGION_MANUAL || (TERRAFORM_LAMBDALABS_REGION_US_WEST_3)
+	help
+	  1x H100 (80 GB PCIe)
+	  AVAILABLE in: us-west-3
+	  Price: $2.49/hr (on-demand)
+	  vCPUs: 26, Memory: 200 GiB, Storage: 1024 GiB
+
+config TERRAFORM_LAMBDALABS_INSTANCE_TYPE_GPU_1X_H100_SXM5
+	bool "gpu_1x_h100_sxm5 (Price N/A) - 1x H100 (80 GB SXM5) [AVAILABLE]"
+	depends on !TERRAFORM_LAMBDALABS_REGION_MANUAL || (TERRAFORM_LAMBDALABS_REGION_US_SOUTH_2 || TERRAFORM_LAMBDALABS_REGION_US_SOUTH_3)
+	help
+	  1x H100 (80 GB SXM5)
+	  AVAILABLE in: us-south-2, us-south-3
+	  Price: Price N/A (on-demand)
+	  vCPUs: 26, Memory: 225 GiB, Storage: 2816 GiB
+
+config TERRAFORM_LAMBDALABS_INSTANCE_TYPE_GPU_2X_H100_SXM5
+	bool "gpu_2x_h100_sxm5 (Price N/A) - 2x H100 (80 GB SXM5) [AVAILABLE]"
+	depends on !TERRAFORM_LAMBDALABS_REGION_MANUAL || (TERRAFORM_LAMBDALABS_REGION_US_SOUTH_2)
+	help
+	  2x H100 (80 GB SXM5)
+	  AVAILABLE in: us-south-2
+	  Price: Price N/A (on-demand)
+	  vCPUs: 52, Memory: 450 GiB, Storage: 5632 GiB
+
+config TERRAFORM_LAMBDALABS_INSTANCE_TYPE_GPU_4X_H100_SXM5
+	bool "gpu_4x_h100_sxm5 (Price N/A) - 4x H100 (80 GB SXM5) [AVAILABLE]"
+	depends on !TERRAFORM_LAMBDALABS_REGION_MANUAL || (TERRAFORM_LAMBDALABS_REGION_US_SOUTH_3)
+	help
+	  4x H100 (80 GB SXM5)
+	  AVAILABLE in: us-south-3
+	  Price: Price N/A (on-demand)
+	  vCPUs: 104, Memory: 900 GiB, Storage: 11264 GiB
+
+config TERRAFORM_LAMBDALABS_INSTANCE_TYPE_GPU_8X_A100
+	bool "gpu_8x_a100 ($10.32/hr) - 8x A100 (40 GB SXM4) [AVAILABLE]"
+	depends on !TERRAFORM_LAMBDALABS_REGION_MANUAL || (TERRAFORM_LAMBDALABS_REGION_ME_WEST_1 || TERRAFORM_LAMBDALABS_REGION_ASIA_NORTHEAST_1 || TERRAFORM_LAMBDALABS_REGION_ASIA_NORTHEAST_2 || TERRAFORM_LAMBDALABS_REGION_US_WEST_2)
+	help
+	  8x A100 (40 GB SXM4)
+	  AVAILABLE in: me-west-1, asia-northeast-1, asia-northeast-2 +1 more
+	  Price: $10.32/hr (on-demand)
+	  vCPUs: 124, Memory: 1800 GiB, Storage: 6144 GiB
+
+config TERRAFORM_LAMBDALABS_INSTANCE_TYPE_GPU_8X_A100_80GB_SXM4
+	bool "gpu_8x_a100_80gb_sxm4 (Price N/A) - 8x A100 (80 GB SXM4) [AVAILABLE]"
+	depends on !TERRAFORM_LAMBDALABS_REGION_MANUAL || (TERRAFORM_LAMBDALABS_REGION_US_MIDWEST_1 || TERRAFORM_LAMBDALABS_REGION_US_EAST_1 || TERRAFORM_LAMBDALABS_REGION_AUSTRALIA_EAST_1)
+	help
+	  8x A100 (80 GB SXM4)
+	  AVAILABLE in: us-midwest-1, us-east-1, australia-east-1
+	  Price: Price N/A (on-demand)
+	  vCPUs: 240, Memory: 1800 GiB, Storage: 20480 GiB
+
+config TERRAFORM_LAMBDALABS_INSTANCE_TYPE_GPU_8X_H100_SXM5
+	bool "gpu_8x_h100_sxm5 (Price N/A) - 8x H100 (80 GB SXM5) [AVAILABLE]"
+	depends on !TERRAFORM_LAMBDALABS_REGION_MANUAL || (TERRAFORM_LAMBDALABS_REGION_US_SOUTH_3)
+	help
+	  8x H100 (80 GB SXM5)
+	  AVAILABLE in: us-south-3
+	  Price: Price N/A (on-demand)
+	  vCPUs: 208, Memory: 1800 GiB, Storage: 22528 GiB
+
+config TERRAFORM_LAMBDALABS_INSTANCE_TYPE_GPU_8X_V100
+	bool "gpu_8x_v100 ($4.40/hr) - 8x Tesla V100 (16 GB) [AVAILABLE]"
+	depends on !TERRAFORM_LAMBDALABS_REGION_MANUAL || (TERRAFORM_LAMBDALABS_REGION_US_SOUTH_1)
+	help
+	  8x Tesla V100 (16 GB)
+	  AVAILABLE in: us-south-1
+	  Price: $4.40/hr (on-demand)
+	  vCPUs: 92, Memory: 448 GiB, Storage: 6041 GiB
+
+# Instance types WITHOUT capacity (not recommended):
+config TERRAFORM_LAMBDALABS_INSTANCE_TYPE_CPU_4X_GENERAL
+	bool "cpu_4x_general (Price N/A) - [NO CAPACITY]"
+	depends on !TERRAFORM_LAMBDALABS_REGION_MANUAL
+	help
+	  4x CPU General (16 GiB)
+	  WARNING: Currently NO CAPACITY in any region!
+	  This option will fail during provisioning.
+	  Price: Price N/A (on-demand) when available
+
+config TERRAFORM_LAMBDALABS_INSTANCE_TYPE_GPU_1X_A100
+	bool "gpu_1x_a100 ($1.29/hr) - [NO CAPACITY]"
+	depends on !TERRAFORM_LAMBDALABS_REGION_MANUAL
+	help
+	  1x A100 (40 GB PCIe)
+	  WARNING: Currently NO CAPACITY in any region!
+	  This option will fail during provisioning.
+	  Price: $1.29/hr (on-demand) when available
+
+config TERRAFORM_LAMBDALABS_INSTANCE_TYPE_GPU_1X_A6000
+	bool "gpu_1x_a6000 ($0.80/hr) - [NO CAPACITY]"
+	depends on !TERRAFORM_LAMBDALABS_REGION_MANUAL
+	help
+	  1x A6000 (48 GB)
+	  WARNING: Currently NO CAPACITY in any region!
+	  This option will fail during provisioning.
+	  Price: $0.80/hr (on-demand) when available
+
+config TERRAFORM_LAMBDALABS_INSTANCE_TYPE_GPU_1X_RTX6000
+	bool "gpu_1x_rtx6000 ($0.50/hr) - [NO CAPACITY]"
+	depends on !TERRAFORM_LAMBDALABS_REGION_MANUAL
+	help
+	  1x RTX 6000 (24 GB)
+	  WARNING: Currently NO CAPACITY in any region!
+	  This option will fail during provisioning.
+	  Price: $0.50/hr (on-demand) when available
+
+config TERRAFORM_LAMBDALABS_INSTANCE_TYPE_GPU_2X_A100
+	bool "gpu_2x_a100 ($2.58/hr) - [NO CAPACITY]"
+	depends on !TERRAFORM_LAMBDALABS_REGION_MANUAL
+	help
+	  2x A100 (40 GB PCIe)
+	  WARNING: Currently NO CAPACITY in any region!
+	  This option will fail during provisioning.
+	  Price: $2.58/hr (on-demand) when available
+
+config TERRAFORM_LAMBDALABS_INSTANCE_TYPE_GPU_2X_A6000
+	bool "gpu_2x_a6000 ($1.60/hr) - [NO CAPACITY]"
+	depends on !TERRAFORM_LAMBDALABS_REGION_MANUAL
+	help
+	  2x A6000 (48 GB)
+	  WARNING: Currently NO CAPACITY in any region!
+	  This option will fail during provisioning.
+	  Price: $1.60/hr (on-demand) when available
+
+config TERRAFORM_LAMBDALABS_INSTANCE_TYPE_GPU_4X_A100
+	bool "gpu_4x_a100 ($5.16/hr) - [NO CAPACITY]"
+	depends on !TERRAFORM_LAMBDALABS_REGION_MANUAL
+	help
+	  4x A100 (40 GB PCIe)
+	  WARNING: Currently NO CAPACITY in any region!
+	  This option will fail during provisioning.
+	  Price: $5.16/hr (on-demand) when available
+
+config TERRAFORM_LAMBDALABS_INSTANCE_TYPE_GPU_4X_A6000
+	bool "gpu_4x_a6000 ($3.20/hr) - [NO CAPACITY]"
+	depends on !TERRAFORM_LAMBDALABS_REGION_MANUAL
+	help
+	  4x A6000 (48 GB)
+	  WARNING: Currently NO CAPACITY in any region!
+	  This option will fail during provisioning.
+	  Price: $3.20/hr (on-demand) when available
+
+config TERRAFORM_LAMBDALABS_INSTANCE_TYPE_GPU_8X_B200_SXM6
+	bool "gpu_8x_b200_sxm6 (Price N/A) - [NO CAPACITY]"
+	depends on !TERRAFORM_LAMBDALABS_REGION_MANUAL
+	help
+	  8x B200 (180 GB SXM6)
+	  WARNING: Currently NO CAPACITY in any region!
+	  This option will fail during provisioning.
+	  Price: Price N/A (on-demand) when available
+
+endchoice
diff --git a/terraform/lambdalabs/kconfigs/Kconfig.location.static b/terraform/lambdalabs/kconfigs/Kconfig.location.static
new file mode 100644
index 00000000..9dd41dba
--- /dev/null
+++ b/terraform/lambdalabs/kconfigs/Kconfig.location.static
@@ -0,0 +1,95 @@
+# Lambda Labs regions (dynamically generated with capacity info)
+
+choice
+	prompt "Lambda Labs region"
+	default TERRAFORM_LAMBDALABS_REGION_US_SOUTH_3
+	help
+	  Select the Lambda Labs region for deployment.
+	  Number shows how many instance types have capacity in that region.
+	  Choose regions with higher numbers for better availability.
+
+config TERRAFORM_LAMBDALABS_REGION_US_SOUTH_3
+	bool "us-south-3 - Us South 3 [3 types available]"
+	help
+	  Region: Us South 3
+	  3 instance types have capacity in this region.
+
+config TERRAFORM_LAMBDALABS_REGION_US_EAST_1
+	bool "us-east-1 - US East (Virginia) [2 types available]"
+	help
+	  Region: US East (Virginia)
+	  2 instance types have capacity in this region.
+
+config TERRAFORM_LAMBDALABS_REGION_US_SOUTH_2
+	bool "us-south-2 - Us South 2 [2 types available]"
+	help
+	  Region: Us South 2
+	  2 instance types have capacity in this region.
+
+config TERRAFORM_LAMBDALABS_REGION_US_WEST_2
+	bool "us-west-2 - US West 2 [2 types available]"
+	help
+	  Region: US West 2
+	  2 instance types have capacity in this region.
+
+config TERRAFORM_LAMBDALABS_REGION_ASIA_NORTHEAST_1
+	bool "asia-northeast-1 - Asia Northeast [1 types available]"
+	help
+	  Region: Asia Northeast
+	  1 instance types have capacity in this region.
+
+config TERRAFORM_LAMBDALABS_REGION_ASIA_NORTHEAST_2
+	bool "asia-northeast-2 - Asia Northeast 2 [1 types available]"
+	help
+	  Region: Asia Northeast 2
+	  1 instance types have capacity in this region.
+
+config TERRAFORM_LAMBDALABS_REGION_ASIA_SOUTH_1
+	bool "asia-south-1 - Asia South [1 types available]"
+	help
+	  Region: Asia South
+	  1 instance types have capacity in this region.
+
+config TERRAFORM_LAMBDALABS_REGION_AUSTRALIA_EAST_1
+	bool "australia-east-1 - Australia East 1 [1 types available]"
+	help
+	  Region: Australia East 1
+	  1 instance types have capacity in this region.
+
+config TERRAFORM_LAMBDALABS_REGION_ME_WEST_1
+	bool "me-west-1 - Middle East West [1 types available]"
+	help
+	  Region: Middle East West
+	  1 instance types have capacity in this region.
+
+config TERRAFORM_LAMBDALABS_REGION_US_EAST_3
+	bool "us-east-3 - Us East 3 [1 types available]"
+	help
+	  Region: Us East 3
+	  1 instance types have capacity in this region.
+
+config TERRAFORM_LAMBDALABS_REGION_US_MIDWEST_1
+	bool "us-midwest-1 - US Midwest [1 types available]"
+	help
+	  Region: US Midwest
+	  1 instance types have capacity in this region.
+
+config TERRAFORM_LAMBDALABS_REGION_US_SOUTH_1
+	bool "us-south-1 - US South [1 types available]"
+	help
+	  Region: US South
+	  1 instance types have capacity in this region.
+
+config TERRAFORM_LAMBDALABS_REGION_US_WEST_1
+	bool "us-west-1 - US West (California) [1 types available]"
+	help
+	  Region: US West (California)
+	  1 instance types have capacity in this region.
+
+config TERRAFORM_LAMBDALABS_REGION_US_WEST_3
+	bool "us-west-3 - US West 3 [1 types available]"
+	help
+	  Region: US West 3
+	  1 instance types have capacity in this region.
+
+endchoice
-- 
2.50.1


      parent reply	other threads:[~2025-09-04  9:00 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-09-04  9:00 [PATCH 0/3] aws: add dynamic kconfig support Luis Chamberlain
2025-09-04  9:00 ` [PATCH 1/3] aws: add dynamic cloud configuration support using AWS CLI Luis Chamberlain
2025-09-04 13:55   ` Chuck Lever
2025-09-04 17:12     ` Luis Chamberlain
2025-09-04  9:00 ` [PATCH 2/3] aws: run make cloud-update Luis Chamberlain
2025-09-04  9:00 ` Luis Chamberlain [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20250904090030.2481840-4-mcgrof@kernel.org \
    --to=mcgrof@kernel.org \
    --cc=cel@kernel.org \
    --cc=da.gomez@kruces.com \
    --cc=kdevops@lists.linux.dev \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.