Skip to content

Commit 7209724

Browse files
hanwen-clusterHimani Anil Deshpande
andcommitted
Reduce build image components templates size
ImageBuilder has a limit of 16000. This commit reduces the size and add a unit test to prevent the template hitting the limit when parameters with long values are provided Co-authored-by: Himani Anil Deshpande <himanidp@amazon.com>
1 parent 91442e2 commit 7209724

File tree

5 files changed

+202
-303
lines changed

5 files changed

+202
-303
lines changed

cli/src/pcluster/config/imagebuilder_config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ def __init__(self, config: ImageBuilderConfig):
340340

341341
def _set_default(self, config: ImageBuilderConfig):
342342
dev_settings = config.dev_settings
343-
self.region = "{{ build.AWSRegion.outputs.stdout }}"
343+
self.region = get_region()
344344
self.nvidia = {"enabled": "yes"} if config.build.installation.nvidia_software.enabled else {"enabled": "no"}
345345
self.lustre = {"enabled": "yes"} if config.build.installation.lustre_client.enabled else {"enabled": "no"}
346346
self.is_official_ami_build = "false"

0 commit comments

Comments
 (0)