Sha256: f2876363631d5ceb2d00b1f342d2bb796bbc9fb66a90f2982f03781e75af6ad2

Contents?: true

Size: 634 Bytes

Versions: 4

Compression:

Stored size: 634 Bytes

Contents

---
title: UFO_ENV_EXTRA
nav_order: 20
---

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

4 entries across 4 versions & 1 rubygems

Version Path
ufo-4.4.3 docs/_docs/ufo-env-extra.md
ufo-4.4.2 docs/_docs/ufo-env-extra.md
ufo-4.4.1 docs/_docs/ufo-env-extra.md
ufo-4.4.0 docs/_docs/ufo-env-extra.md