Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for non-multiple-accounts infrastructure #6

Open
robmoorman opened this issue Mar 21, 2017 · 2 comments
Open

Support for non-multiple-accounts infrastructure #6

robmoorman opened this issue Mar 21, 2017 · 2 comments
Assignees

Comments

@robmoorman
Copy link
Contributor

Some facts as I experience most of the projects I work on:

  1. Most of projects are setup secure by having their own aws account (e.g. test and production separated).
  2. Also in almost every case the infrastructure for test is the same for production, only smaller instance sizes and/or desired counts to minimize capacity

When having an AWS account where you have multiple environments setup in, the task definition names will conflict with each other.

A suggestion, make the configuration more abstract:

---
clusters:
  test:
    test-example
  production:
    production-example

environments:
    test:
      DATABASE_URL: postgresql://
    production:
      DATABASE_URL: postgresql://

task_definitions:
  web: 
    template: task_definitions/web.json
    overrides:
      production:
        memory: 512

services:
  web: 
    task_definition: web

before_deploy:
  - task_definition: manage
    container: uwsgi
    command: manage.py migrate --noinput

Deploy with e.g. ecs-deplojo --config example.yaml --env production --var="image=example:latest"

@mvantellingen
Copy link
Member

This would result in quite large config files (for some of our projects > 400 lines) Need to think about this a bit more

@jasiek
Copy link

jasiek commented May 27, 2021

I'd think you could always generate a config file on the fly with templating.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants