Skip to content

0.77

Compare
Choose a tag to compare
@tuxlife tuxlife released this 10 Sep 11:47
· 833 commits to master since this release
  • Change default setting for ELB setttings without scheme option from internet-facing to internal
  • Added warning to raise awareness of a public ELBs

To Create a Internet-facing ELB you must add following option to the AppLoadBalancer section:

Scheme: internet-facing

For example:

# basic information for generating and executing this definition
SenzaInfo:
  StackName: hello-world
  Parameters:
    - ImageVersion:
        Description: "Docker image version of hello-world."

# a list of senza components to apply to the definition
SenzaComponents:

  # this basic configuration is required for the other components
  - Configuration:
      Type: Senza::StupsAutoConfiguration # auto-detect network setup

  # will create a launch configuration and auto scaling group with scaling triggers
  - AppServer:
      Type: Senza::TaupageAutoScalingGroup
      InstanceType: t2.micro
      SecurityGroups:
        - app-hello-world
      IamRoles:
        - app-hello-world
      ElasticLoadBalancer: AppLoadBalancer
      AssociatePublicIpAddress: false # change for standalone deployment in default VPC
      TaupageConfig:
        application_version: "{{Arguments.ImageVersion}}"
        runtime: Docker
        source: "stups/hello-world:{{Arguments.ImageVersion}}"
        health_check_path: /
        ports:
          8080: 8080

  # creates an ELB entry and Route53 domains to this ELB
  - AppLoadBalancer:
      Type: Senza::WeightedDnsElasticLoadBalancer
      HTTPPort: 8080
      HealthCheckPath: /
      SecurityGroups:
        - app-hello-world-lb
      Scheme: internet-facing