Sha256: 7f8ee73387ef751de912ffe7739627e698a71f6ba3f5b1b08482dfb748e2fda9

Contents?: true

Size: 634 Bytes

Versions: 5

Compression:

Stored size: 634 Bytes

Contents

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

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-4.5.4 docs/_docs/ufo-env-extra.md
ufo-4.5.3 docs/_docs/ufo-env-extra.md
ufo-4.5.2 docs/_docs/ufo-env-extra.md
ufo-4.5.1 docs/_docs/ufo-env-extra.md
ufo-4.5.0 docs/_docs/ufo-env-extra.md