Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make property overwriting for senza components less destructive #370

Closed
Tar-Minyatur opened this issue Sep 29, 2016 · 0 comments
Closed
Assignees

Comments

@Tar-Minyatur
Copy link

When using a senza component to build a stack, it would be great if it was possible to overwrite properties in a less destructive way.

Expected Behavior

We are using the default component WeightedDnsElasticLoadBalancer. Now we want to open port 80 in addition to port 443 in order to allow our application to redirect users from http to https. We want to keep all of the configuration and extend it with one additional entry.

Actual Behavior

Currently this is not possible, because we can only use the option to overwrite the Listeners property like this:

  - AppLoadBalancer:
      Type: Senza::WeightedDnsElasticLoadBalancer
      ...
      Listeners:
      - LoadBalancerPort: 80
        Protocol: HTTP
        InstancePort: 80
        InstanceProtocol: HTTP
      - LoadBalancerPort: 443
        Protocol: HTTPS
        InstancePort: 80
        InstanceProtocol: HTTP
        SSLCertificateId: "????"

Doing this, we completely miss out on the ease of use that the component provides with regard to selecting the correct SSL certificate, because our definition completely overwrites the one senza creates.

As a solution it would be nice if we could either flag our Listeners entry as "these are additional, not a replacement" or alternatively have a way of tell senza to inject the SSLCertificateId.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants