Sha256: a3701f3a262ae01d0f295b2e818b1192859a8db5049e53015ed162e3ac270b66

Contents?: true

Size: 1.22 KB

Versions: 2

Compression:

Stored size: 1.22 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',
        // dynamic_port_mapping cannot be enabled with elb
        elb: {
            listeners: [
                {
                    load_balancer_port: 80,
                    protocol: 'HTTP',
                },
            ],
            subnets: ['subnet-XXXXXXXX', 'subnet-YYYYYYYY'],
            security_groups: ['sg-ZZZZZZZZ'],
        },
    },
    app: {
        image: 'ryotarai/hello-sinatra',
        memory: 128,
        cpu: 256,
        env: {
            PORT: '3000',
            MESSAGE: std.format('%s-san', provide('username')),
        },
    },
    additional_containers: {
        front: {
            image_tag: 'hako-nginx',
            memory: 32,
            cpu: 32,
        },
    },
    scripts: [
        (import 'front.libsonnet') + {
            backend_port: 3000,
            locations: {
                '/': {
                    allow_only_from: ['10.0.0.0/24'],
                },
            },
        },
    ],
}

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
hako-2.2.0 examples/hello-lb.jsonnet
hako-2.1.0 examples/hello-lb.jsonnet