diff --git a/senza/components/configuration.py b/senza/components/configuration.py
index e83b419..6712f03 100644
--- a/senza/components/configuration.py
+++ b/senza/components/configuration.py
@@ -3,7 +3,7 @@ from senza.utils import ensure_keys, named_value
 
 
 def format_params(args):
-    items = [(key, val) for key, val in args.__dict__.items() if key not in ('region', 'version')]
+    items = [(key, val) for key, val in sorted(args.__dict__.items()) if key not in ('region', 'version')]
     return ', '.join(['{}: {}'.format(key, val) for key, val in items])
 
 
@@ -27,7 +27,9 @@ def component_configuration(definition, configuration, args, info, force, accoun
 
     if 'Description' not in definition:
         # set some sane default stack description
-        definition['Description'] = get_default_description(info, args)
+        # we need to truncate at 1024 chars (should be Bytes actually)
+        # see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/template-description-structure.html
+        definition['Description'] = get_default_description(info, args)[:1024]
 
     # ServerSubnets
     for region, subnets in configuration.get('ServerSubnets', {}).items():

Shrink "description" field to allowed 1024 chars
This seems to pop up more and more, I see no real reason why senza should not just do

description[:1024]

to fix this for everyone.
diff --git a/tests/test_components.py b/tests/test_components.py
index fdc377d..652ccfc 100644
--- a/tests/test_components.py
+++ b/tests/test_components.py
@@ -6,6 +6,7 @@ import pytest
 import senza.traffic
 from senza.cli import AccountArguments
 from senza.components import get_component
+from senza.components.configuration import component_configuration
 from senza.components.auto_scaling_group import (component_auto_scaling_group,
                                                  normalize_asg_success,
                                                  normalize_network_threshold,
@@ -923,3 +924,14 @@ def test_weighted_dns_load_balancer_v2(monkeypatch, boto_resource):
     assert result['Resources']['MyLBListener']['Properties']['Certificates'] == [{'CertificateArn': 'arn:aws:42'}]
     # test that our custom drain setting works
     assert result['Resources']['MyLBTargetGroup']['Properties']['TargetGroupAttributes'] == [{'Key': 'deregistration_delay.timeout_seconds', 'Value': '123'}]
+
+
+def test_max_description_length():
+    definition = {}
+    configuration = {}
+    args = MagicMock()
+    args.__dict__ = {'Param1': 'my param value', 'SecondParam': ('1234567890' * 100)}
+    info = {'StackName': 'My-Stack'}
+    component_configuration(definition, configuration, args, info, False, AccountArguments('dummyregion'))
+    assert definition['Description'].startswith('My Stack (Param1: my param value, SecondParam: 1234567890')
+    assert 0 < len(definition['Description']) <= 1024

pip install -e .[dev]
parse_log_pytest
requirements.txt
pytest pytest-cov pytest-xdist pytest-mock pytest-asyncio
3.9
requirements.txt
pytest --no-header -rA --tb=line --color=no -p no:cacheprovider -W ignore::DeprecationWarning
boto3==1.37.23
botocore==1.37.23
certifi==2025.1.31
charset-normalizer==3.4.1
click==8.1.8
clickclick==20.10.2
coverage==7.8.0
dnspython==1.15.0
dnspython3==1.15.0
exceptiongroup==1.2.2
execnet==2.1.1
idna==3.10
importlib_metadata==8.6.1
iniconfig==2.1.0
jmespath==1.0.1
packaging==24.2
pluggy==1.5.0
pystache==0.6.8
pytest==8.3.5
pytest-asyncio==0.26.0
pytest-cov==6.0.0
pytest-mock==3.14.0
pytest-xdist==3.6.1
python-dateutil==2.9.0.post0
PyYAML==6.0.2
requests==2.32.3
s3transfer==0.11.4
six==1.17.0
stups-cli-support==1.1.22
stups-pierone==1.1.56
-e git+https://github.com/zalando-stups/senza.git@4993fb81ebcc9c8a5c6773af14eaa3cb0e069010#egg=stups_senza
stups-tokens==1.1.19
stups-zign==1.2
tomli==2.2.1
typing==3.7.4.3
typing_extensions==4.13.0
urllib3==1.26.20
zipp==3.21.0

name: senza
channels:
  - defaults
  - https://repo.anaconda.com/pkgs/main
  - https://repo.anaconda.com/pkgs/r
  - conda-forge
dependencies:
  - _libgcc_mutex=0.1=main
  - _openmp_mutex=5.1=1_gnu
  - ca-certificates=2025.2.25=h06a4308_0
  - ld_impl_linux-64=2.40=h12ee557_0
  - libffi=3.4.4=h6a678d5_1
  - libgcc-ng=11.2.0=h1234567_1
  - libgomp=11.2.0=h1234567_1
  - libstdcxx-ng=11.2.0=h1234567_1
  - ncurses=6.4=h6a678d5_0
  - openssl=3.0.16=h5eee18b_0
  - pip=25.0=py39h06a4308_0
  - python=3.9.21=he870216_1
  - readline=8.2=h5eee18b_0
  - setuptools=75.8.0=py39h06a4308_0
  - sqlite=3.45.3=h5eee18b_0
  - tk=8.6.14=h39e8969_0
  - tzdata=2025a=h04d1e81_0
  - wheel=0.45.1=py39h06a4308_0
  - xz=5.6.4=h5eee18b_1
  - zlib=1.2.13=h5eee18b_1
  - pip:
      - boto3==1.37.23
      - botocore==1.37.23
      - certifi==2025.1.31
      - charset-normalizer==3.4.1
      - click==8.1.8
      - clickclick==20.10.2
      - coverage==7.8.0
      - dnspython==1.15.0
      - dnspython3==1.15.0
      - exceptiongroup==1.2.2
      - execnet==2.1.1
      - idna==3.10
      - importlib-metadata==8.6.1
      - iniconfig==2.1.0
      - jmespath==1.0.1
      - packaging==24.2
      - pluggy==1.5.0
      - pystache==0.6.8
      - pytest==8.3.5
      - pytest-asyncio==0.26.0
      - pytest-cov==6.0.0
      - pytest-mock==3.14.0
      - pytest-xdist==3.6.1
      - python-dateutil==2.9.0.post0
      - pyyaml==6.0.2
      - requests==2.32.3
      - s3transfer==0.11.4
      - six==1.17.0
      - stups-cli-support==1.1.22
      - stups-pierone==1.1.56
      - stups-tokens==1.1.19
      - stups-zign==1.2
      - tomli==2.2.1
      - typing==3.7.4.3
      - typing-extensions==4.13.0
      - urllib3==1.26.20
      - zipp==3.21.0
prefix: /opt/conda/envs/senza

tests/test_components.py::test_max_description_length
tests/test_components.py::test_weighted_dns_load_balancer tests/test_components.py::test_weighted_dns_load_balancer_with_different_domains tests/test_components.py::test_check_docker_image_exists
tests/test_components.py::test_invalid_component tests/test_components.py::test_component_iam_role tests/test_components.py::test_get_merged_policies tests/test_components.py::test_component_load_balancer_healthcheck tests/test_components.py::test_component_load_balancer_idletimeout tests/test_components.py::test_component_load_balancer_http_only tests/test_components.py::test_component_load_balancer_namelength tests/test_components.py::test_component_stups_auto_configuration tests/test_components.py::test_component_stups_auto_configuration_vpc_id tests/test_components.py::test_component_redis_node tests/test_components.py::test_component_redis_cluster tests/test_components.py::test_component_taupage_auto_scaling_group_user_data_without_ref tests/test_components.py::test_component_taupage_auto_scaling_group_user_data_with_ref tests/test_components.py::test_component_taupage_auto_scaling_group_user_data_with_lists_and_empty_dict tests/test_components.py::test_component_auto_scaling_group_configurable_properties tests/test_components.py::test_component_auto_scaling_group_custom_tags tests/test_components.py::test_component_auto_scaling_group_configurable_properties2 tests/test_components.py::test_component_auto_scaling_group_metric_type tests/test_components.py::test_component_auto_scaling_group_optional_metric_type tests/test_components.py::test_to_iso8601_duration tests/test_components.py::test_normalize_asg_success tests/test_components.py::test_normalize_network_threshold tests/test_components.py::test_check_application_id tests/test_components.py::test_check_application_version tests/test_components.py::test_get_load_balancer_name tests/test_components.py::test_weighted_dns_load_balancer_v2
senza/components/configuration.py
senza/components/configuration.py