Sha256: f8258b43e4cf5344523c902d0b750dea5f5a6e635eb6e96bd39401e4658b8333

Contents?: true

Size: 1.12 KB

Versions: 12

Compression:

Stored size: 1.12 KB

Contents

---
title: Settings AWS_PROFILE
short_title: AWS Profile
categories: settings
nav_order: 13
---

## AWS_PROFILE support

An interesting option is `aws_profile`.  Here's an example:

```yaml
development:
  aws_profile: dev_profile

production:
  aws_profile: prod_profile
```

This provides a way to tightly bind `UFO_ENV` to `AWS_PROFILE`.  This prevents you from forgetting to switch your `UFO_ENV` when switching your `AWS_PROFILE` thereby accidentally launching a stack in the wrong environment.


AWS_PROFILE | UFO_ENV | Notes
--- | --- | ---
dev_profile | development
prod_profile | production
whatever | development | default since whatever is not found in settings.yml

The binding is two-way. So:

    UFO_ENV=production ufo ship # will deploy to the AWS_PROFILE=prod_profile
    AWS_PROFILE=prod_profile ufo ship # will deploy to the UFO_ENV=production

This behavior prevents you from switching `AWS_PROFILE`s, forgetting to switch `UFO_ENV` and then accidentally deploying a production based docker image to development and vice versa because you forgot to also switch `UFO_ENV` to its respective environment.

{% include prev_next.md %}

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
ufo-4.5.11 docs/_docs/settings/aws_profile.md
ufo-4.5.10 docs/_docs/settings/aws_profile.md
ufo-4.5.9 docs/_docs/settings/aws_profile.md
ufo-4.5.8 docs/_docs/settings/aws_profile.md
ufo-4.5.7 docs/_docs/settings/aws_profile.md
ufo-4.5.6 docs/_docs/settings/aws_profile.md
ufo-4.5.5 docs/_docs/settings/aws_profile.md
ufo-4.5.4 docs/_docs/settings/aws_profile.md
ufo-4.5.3 docs/_docs/settings/aws_profile.md
ufo-4.5.2 docs/_docs/settings/aws_profile.md
ufo-4.5.1 docs/_docs/settings/aws_profile.md
ufo-4.5.0 docs/_docs/settings/aws_profile.md