diff --git a/cli/tests/pcluster/config/test_source_consistency.py b/cli/tests/pcluster/config/test_source_consistency.py index 7ea08d5aa3..b177fa22e8 100644 --- a/cli/tests/pcluster/config/test_source_consistency.py +++ b/cli/tests/pcluster/config/test_source_consistency.py @@ -88,6 +88,10 @@ def test_defaults_consistency(): # metadata is generated dynamically based on user's configuration. ignored_params += ["ClusterConfigMetadata"] + # ComputeInstanceType parameter is expected to differ from the default value in the CFN template because + # it is dynamically generated based on the AWS region + ignored_params += ["ComputeInstanceType"] + cfn_params = [section_cfn_params.value for section_cfn_params in DefaultCfnParams] default_cfn_values = utils.merge_dicts(*cfn_params) diff --git a/cloudformation/aws-parallelcluster.cfn.json b/cloudformation/aws-parallelcluster.cfn.json index e71999af29..ad01d2604f 100644 --- a/cloudformation/aws-parallelcluster.cfn.json +++ b/cloudformation/aws-parallelcluster.cfn.json @@ -14,6 +14,7 @@ "ComputeInstanceType": { "Description": "ComputeFleet EC2 instance type", "Type": "String", + "Default": "NONE", "ConstraintDescription": "Must be a valid EC2 instance type, with support for HVM." }, "MinSize": {