Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Broadside config for load-balanced service, with preconfigured ELB named 'redshift-console-elb'
Broadside.configure do |config|
config.application = 'redshift_console'
config.default_docker_image = # image location
config.aws.ecs_default_cluster = # cluster name
config.targets = {
production_web: {
scale: 1,
env_file: '.env.production',
service_config: {
role: 'ecsServiceRole',
load_balancers: [
{
container_name: 'redshift_console_production_web', # config.application + _ + target
container_port: 5000,
load_balancer_name: 'redshift-console-elb' # already created
}
]
},
task_definition_config: {
container_definitions: [
{
port_mappings: [
{
container_port: 5000,
host_port: 5000
}
],
cpu: 64,
memory: 200
}
]
}
}
}
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.