Sha256: 2a50f699d68dbf47c87fdb2ccbb95179a234384027e8630bb31113cfab86d5ea

Contents?: true

Size: 1.42 KB

Versions: 23

Compression:

Stored size: 1.42 KB

Contents

local fileProvider = std.native('provide.file');
local provide(name) = fileProvider(std.toString({ path: 'hello.env' }), name);

{
  scheduler: {
    type: 'ecs',
    region: 'ap-northeast-1',
    cluster: 'eagletmt',
    desired_count: 2,
    role: 'ecsServiceRole',
    elb_v2: {
      // VPC id where the target group is located
      vpc_id: 'vpc-WWWWWWWW',
      // Health check path of the target group
      health_check_path: '/site/sha',
      listeners: [
        {
          port: 80,
          protocol: 'HTTP',
        },
        {
          port: 443,
          protocol: 'HTTPS',
          certificate_arn: 'arn:aws:iam::012345678901:server-certificate/hello-lb-v2.example.com',
        },
      ],
      subnets: ['subnet-XXXXXXXX', 'subnet-YYYYYYYY'],
      security_groups: ['sg-ZZZZZZZZ'],
      load_balancer_attributes: {
        'access_logs.s3.enabled': 'true',
        'access_logs.s3.bucket': 'hako-access-logs',
        'access_logs.s3.prefix': 'hako-hello-lb-v2',
      },
      // Connect ELB to app container
      container_name: 'app',
      container_port: 3000,
    },
  },
  app: {
    image: 'ryotarai/hello-sinatra',
    memory: 128,
    cpu: 256,
    env: {
      PORT: '3000',
      MESSAGE: std.format('%s-san', provide('username')),
    },
    // Add port mapping to connect to ELB
    port_mappings: [
      {
        container_port: 3000,
        host_port: 0,
        protocol: 'tcp',
      },
    ],
  },
}

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
hako-2.17.0 examples/hello-nofront.jsonnet
hako-2.16.0 examples/hello-nofront.jsonnet
hako-2.15.1 examples/hello-nofront.jsonnet
hako-2.15.0 examples/hello-nofront.jsonnet
hako-2.14.0 examples/hello-nofront.jsonnet
hako-2.13.0 examples/hello-nofront.jsonnet
hako-2.12.0 examples/hello-nofront.jsonnet
hako-2.11.1 examples/hello-nofront.jsonnet
hako-2.11.0 examples/hello-nofront.jsonnet
hako-2.10.0 examples/hello-nofront.jsonnet
hako-2.9.2 examples/hello-nofront.jsonnet
hako-2.9.1 examples/hello-nofront.jsonnet
hako-2.9.0 examples/hello-nofront.jsonnet
hako-2.8.0 examples/hello-nofront.jsonnet
hako-2.7.0 examples/hello-nofront.jsonnet
hako-2.6.2 examples/hello-nofront.jsonnet
hako-2.6.1 examples/hello-nofront.jsonnet
hako-2.6.0 examples/hello-nofront.jsonnet
hako-2.5.1 examples/hello-nofront.jsonnet
hako-2.5.0 examples/hello-nofront.jsonnet