Skip to content

Instantly share code, notes, and snippets.

@slpsys
Created February 25, 2017 20:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save slpsys/198704b444fce38cff88dea6b9f0dbc7 to your computer and use it in GitHub Desktop.
Save slpsys/198704b444fce38cff88dea6b9f0dbc7 to your computer and use it in GitHub Desktop.
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