zalando-stups / senza

Deploy immutable application stacks and create and execute AWS CloudFormation templates in a sane way
https://pypi.python.org/pypi/stups-senza
Other
96 stars 72 forks source link

Support for Elastigroups [SpotInst] ignores VPCZoneIdentifier #543

Closed mo-gr closed 5 years ago

mo-gr commented 5 years ago

When the Appserver has a VPCZoneIdentifier configuration, like:

VPCZoneIdentifier:
          Fn::FindInMap:
            - LoadBalancerSubnets
            - Ref: AWS::Region
            - Subnets

This should be translated to the Elastigroup create argument compute.subnetIds.

Currently, this does not happen, resulting in instances being potentially created in the wrong subnets.

A workaround is to explicitly specify the compute.subnetIds argument in the Elastigroup configuration:

Elastigroup:
  compute:
    subnetIds:
      Fn::FindInMap:
            - LoadBalancerSubnets
            - Ref: AWS::Region
            - Subnets