diff --git a/senza/components/auto_scaling_group.py b/senza/components/auto_scaling_group.py
index ebffa4b..17d8974 100644
--- a/senza/components/auto_scaling_group.py
+++ b/senza/components/auto_scaling_group.py
@@ -20,11 +20,9 @@ def component_auto_scaling_group(definition, configuration, args, info, force, a
         }
     }
 
-    if 'BlockDeviceMappings' in configuration:
-        definition['Resources'][config_name]['Properties']['BlockDeviceMappings'] = configuration['BlockDeviceMappings']
-
-    if "IamInstanceProfile" in configuration:
-        definition["Resources"][config_name]["Properties"]["IamInstanceProfile"] = configuration["IamInstanceProfile"]
+    for key in set(["BlockDeviceMappings", "IamInstanceProfile", "SpotPrice"]):
+        if key in configuration:
+            definition['Resources'][config_name]['Properties'][key] = configuration[key]
 
     if 'IamRoles' in configuration:
         logical_id = configuration['Name'] + 'InstanceProfile'

Senza ignores "SpotPrice" property on auto scaling group
```
      InstanceType: m4.xlarge
      SpotPrice: 0.250
```

According to cloudformation specs this will create an ASG with spot instances.
diff --git a/tests/test_components.py b/tests/test_components.py
index 7989398..1191bae 100644
--- a/tests/test_components.py
+++ b/tests/test_components.py
@@ -504,6 +504,33 @@ def test_component_auto_scaling_group_configurable_properties():
     assert result["Resources"]["FooCPUAlarmHigh"]["Properties"]["EvaluationPeriods"] == "1"
     assert result["Resources"]["FooCPUAlarmLow"]["Properties"]["AlarmDescription"] == expected_desc
 
+def test_component_auto_scaling_group_configurable_properties():
+    definition = {"Resources": {}}
+    configuration = {
+        'Name': 'Foo',
+        'InstanceType': 't2.micro',
+        'Image': 'foo',
+        'SpotPrice': 0.250
+    }
+
+    args = MagicMock()
+    args.region = "foo"
+
+    info = {
+        'StackName': 'FooStack',
+        'StackVersion': 'FooVersion'
+    }
+
+    result = component_auto_scaling_group(definition, configuration, args, info, False, MagicMock())
+
+    assert result["Resources"]["FooConfig"]["Properties"]["SpotPrice"] == 0.250
+
+    del configuration["SpotPrice"]
+
+    result = component_auto_scaling_group(definition, configuration, args, info, False, MagicMock())
+
+    assert "SpotPrice" not in result["Resources"]["FooConfig"]["Properties"]
+
 
 def test_component_auto_scaling_group_metric_type():
     definition = {"Resources": {}}

pip install -e .[dev]
parse_log_pytest
requirements.txt
pytest pytest-cov
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
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-cov==6.0.0
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@6bd1f85283e4252aa58aa38fd74936dd978dcded#egg=stups_senza
stups-tokens==1.1.19
stups-zign==1.2
tomli==2.2.1
typing==3.7.4.3
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
      - 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-cov==6.0.0
      - 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
      - urllib3==1.26.20
      - zipp==3.21.0
prefix: /opt/conda/envs/senza

tests/test_components.py::test_component_auto_scaling_group_configurable_properties
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_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_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
senza/components/auto_scaling_group.py
senza/components/auto_scaling_group.py