Sha256: 757e0dcb5db3f45ecfb8bda77fbe70a67f107844e37c9ee1fac2c95b717672c6

Contents?: true

Size: 800 Bytes

Versions: 7

Compression:

Stored size: 800 Bytes

Contents

---
title: UFO_ENV_EXTRA
nav_order: 21
---

<div class="video-box"><div class="video-container"><iframe src="https://www.youtube.com/embed/UVQuwQGToYE" frameborder="0" allowfullscreen=""></iframe></div></div>

Ufo has an concept of extra environments. This is controlled by the `UFO_ENV_EXTRA` variable.  By setting `UFO_ENV_EXTRA` you can create additional identical ECS services or environments.

    ufo ship demo-web # creates a demo-web ecs service
    UFO_ENV_EXTRA=2 ufo ship demo-web # creates a demo-web-2 ecs service

The `UFO_ENV_EXTRA` can also be set with `ufo current` so you do not have to type it over.

    ufo current --env-extra 1

The precedence:

1. UFO_ENV_EXTRA - takes highest precedence
2. `.ufo/current` env-extra setting - takes lower precedence

{% include prev_next.md %}

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
ufo-4.5.11 docs/_docs/ufo-env-extra.md
ufo-4.5.10 docs/_docs/ufo-env-extra.md
ufo-4.5.9 docs/_docs/ufo-env-extra.md
ufo-4.5.8 docs/_docs/ufo-env-extra.md
ufo-4.5.7 docs/_docs/ufo-env-extra.md
ufo-4.5.6 docs/_docs/ufo-env-extra.md
ufo-4.5.5 docs/_docs/ufo-env-extra.md