Sha256: e3d6e6eb872dc8bf0dd0949bf66741ca1d8337a3f42e7150dea60ba1b72bb0be

Contents?: true

Size: 801 Bytes

Versions: 5

Compression:

Stored size: 801 Bytes

Contents

---
title: UFO_ENV_EXTRA
nav_order: 22
---

<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

5 entries across 5 versions & 1 rubygems

Version Path
ufo-5.0.0 docs/_docs/ufo-env-extra.md
ufo-4.6.3 docs/_docs/ufo-env-extra.md
ufo-4.6.2 docs/_docs/ufo-env-extra.md
ufo-4.6.1 docs/_docs/ufo-env-extra.md
ufo-4.6.0 docs/_docs/ufo-env-extra.md