Settings AWS_PROFILE
AWS_PROFILE support
An interesting option is aws_profile
. Here’s an example:
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.
Pro tip: Use the <- and -> arrow keys to move back and forward.
Edit this page
See a typo or an error? You can improve this page. This website is available on GitHub and contributions are encouraged and welcomed. We love pull requests from you!
- Suggest an edit to this page (here's the contributing guide).
- Open an issue about this page to report a problem.