From b7592d0e6387396304b39ba49822ea69e3dd380c Mon Sep 17 00:00:00 2001
From: Brandon Clayton <bclayton@usgs.gov>
Date: Fri, 24 Jan 2025 09:39:55 -0700
Subject: [PATCH] change config

---
 nshms.yml | 92 ++++++++++++++++++++++++++++++++++++++++---------------
 1 file changed, 67 insertions(+), 25 deletions(-)

diff --git a/nshms.yml b/nshms.yml
index f60efbac..6feb724b 100644
--- a/nshms.yml
+++ b/nshms.yml
@@ -1,6 +1,33 @@
 ####
 # NSHMs to use for unit tests and for deployments.
+#
+# Example with mixed deployment:
+#
+# repo: 'nshm-conus'
+# tag: '6.1.0'
+# year: 2023
+# deployment:
+#   baseHref: '/ws/nshmp/conus-2023/dynamic'
+#   environments:
+#     development:
+#       type: 'LAMBDA'
+#     staging:
+#       type: 'LAMBDA'
+#     production:
+#       type: 'EC2'
+#       cpu: 8
+#       memory: 32
+#       min: 1
+#       max: 3
+#   label: '2023 Conterminous U.S. Dynamic Services'
+#   model: 'CONUS_2023'
+#   test:
+#     site:
+#       latitude: 37.75
+#       longitude: -122.4
+#     treeId: 3199
 ####
+
 nshms:
   # Alaska 2007 NSHM
   -
@@ -9,11 +36,13 @@ nshms:
     year: 2007
     deployment:
       baseHref: '/ws/nshmp/alaska-2007/dynamic'
-      type: 'LAMBDA'
       environments:
-        - 'development'
-        - 'staging'
-        # - production
+        development:
+          type: 'LAMBDA'
+        staging:
+          type: 'LAMBDA'
+        # production:
+        #   type: 'LAMBDA'
       label: '2007 Alaska Dynamic Services'
       model: 'ALASKA_2007'
       test:
@@ -29,11 +58,13 @@ nshms:
     year: 2023
     deployment:
       baseHref: '/ws/nshmp/alaska-2023/dynamic'
-      type: 'LAMBDA'
       environments:
-        - 'development'
-        - 'staging'
-        - 'production'
+        development:
+          type: 'LAMBDA'
+        staging:
+          type: 'LAMBDA'
+        production:
+          type: 'LAMBDA'
       label: '2023 Alaska Dynamic Services (beta)'
       model: 'ALASKA_2023'
       test:
@@ -49,11 +80,13 @@ nshms:
     year: 2018
     deployment:
       baseHref: '/ws/nshmp/conus-2018/dynamic'
-      type: 'LAMBDA'
       environments:
-        - 'development'
-        - 'staging'
-        - 'production'
+        development:
+          type: 'LAMBDA'
+        staging:
+          type: 'LAMBDA'
+        production:
+          type: 'LAMBDA'
       label: '2018 Conterminous U.S. Dynamic Services'
       model: 'CONUS_2018'
       test:
@@ -69,11 +102,17 @@ nshms:
     year: 2023
     deployment:
       baseHref: '/ws/nshmp/conus-2023/dynamic'
-      type: 'LAMBDA'
       environments:
-        - 'development'
-        - 'staging'
-        - 'production'
+        development:
+          type: 'EC2'
+          cpu: 8
+          memory: 32
+          min: 1
+          max: 3
+        staging:
+          type: 'LAMBDA'
+        production:
+          type: 'LAMBDA'
       label: '2023 Conterminous U.S. Dynamic Services'
       model: 'CONUS_2023'
       test:
@@ -89,11 +128,13 @@ nshms:
     year: 2021
     deployment:
       baseHref: '/ws/nshmp/hawaii-2021/dynamic'
-      type: 'LAMBDA'
       environments:
-        - 'development'
-        - 'staging'
-        - 'production'
+        development:
+          type: 'LAMBDA'
+        staging:
+          type: 'LAMBDA'
+        production:
+          type: 'LAMBDA'
       label: '2021 Hawaii Dynamic Services'
       model: 'HAWAII_2021'
       test:
@@ -109,11 +150,13 @@ nshms:
     year: 2025
     deployment:
       baseHref: '/ws/nshmp/prvi-2025/dynamic'
-      type: 'LAMBDA'
       environments:
-        - 'development'
-        - 'staging'
-        # - production:
+        development:
+          type: 'LAMBDA'
+        staging:
+          type: 'LAMBDA'
+        production:
+          type: 'LAMBDA'
       label: '2025 PRVI Dynamic Services'
       model: 'PRVI_2025'
       test:
@@ -121,4 +164,3 @@ nshms:
           latitude: 18.47
           longitude: -66.12
         treeId: 7400
-
-- 
GitLab