You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* decouple template from src code
* remove field validator from SDK pydantic model, fix minor parsing problem with list, update kubernetes_version type from str to float
* change type handler from class to module functions, change some public function to private, update unit tests
* cluster-stack template agnostic change
* update unit tests
* update integ test
* resolve circular import for cluster_stack
* resolve rebase merge conflict
* rename to_domain to to_config for cluster_stack
* increase timeout for endpoint integ test from 15min to 20min
resource_name_prefix: Optional[str] =Field("hyp-eks-stack", description="Prefix to be used for all resources. A 4-digit UUID will be added to prefix during submission")
@@ -56,4 +57,77 @@ class ClusterStackBase(BaseModel):
56
57
defvalidate_kubernetes_version(cls, v):
57
58
ifvisnotNone:
58
59
returnstr(v)
59
-
returnv
60
+
returnv
61
+
62
+
defto_config(self, region: str=None):
63
+
"""Convert CLI model to SDK configuration for cluster stack creation.
64
+
65
+
Transforms the CLI model instance into a configuration dictionary that can be used
66
+
to instantiate the HpClusterStack SDK class. Applies necessary transformations
67
+
including AZ configuration, UUID generation, and field restructuring.
68
+
69
+
Args:
70
+
region (str, optional): AWS region for AZ configuration. If provided,
71
+
automatically sets availability_zone_ids and fsx_availability_zone_id
72
+
when not already specified.
73
+
74
+
Returns:
75
+
dict: Configuration dictionary ready for HpClusterStack instantiation.
76
+
Contains all transformed parameters with defaults applied.
@click.option("--retain-resources", help="Comma-separated list of logical resource IDs to retain during deletion (only works on DELETE_FAILED stacks). Resource names are shown in failed deletion output, or use AWS CLI: 'aws cloudformation list-stack-resources --stack-name STACK_NAME --region REGION'")
300
-
@click.option("--region", required=True, help="AWS region (required)")
@click.option("--region", "-r", default=None, help="Region, default to your region in aws configure")
264
+
@click.option("--region", "-r", default=None, help="Region to create cluster stack for, default to your region in aws configure. Not available for other templates.")
269
265
def_default_create(region):
270
266
"""
271
267
Validate configuration and render template files for deployment.
0 commit comments