NOTE: This repo contains only the documentation for the private BoltsOps Pro repo code. Original file: https://github.com/boltopspro/demo-frontend/blob/master/docs/one-account.md The docs are publish so they are available for interested customers. For access to the source code, you must be a paying BoltOps Pro subscriber. If are interested, you can contact us at contact@boltops.com or https://www.boltops.com
Here are the summarized commands if you're using the One AWS account strategy.
With a One Account Strategy, we'll create one ECR repo for both development and production.
AWS_PROFILE=one aws ecr create-repository --repository-name demo/frontend
If you need to list the repo again:
AWS_PROFILE=one aws ecr describe-repositories
- Adjust
settings.yml
to use the sameimage
value fordevelopment
andproduction
. - Adjust the
stack_naming
toappend_env
. Withstack_naming: append_env
, ufo will append the environment to the CloudFormation stack names. Examplesettings.yml
: - Use
aws_profile: one
base:
stack_naming: append_env # on single AWS account setups, append the environment for different CloudFormation stack names
development:
image: 112233445566.dkr.ecr.us-west-2.amazonaws.com/demo/frontend # same as production
aws_profile: one
cfn_profile: development
network_profile: development
production:
image: 112233445566.dkr.ecr.us-west-2.amazonaws.com/demo/frontend # same as development
aws_profile: one
cfn_profile: production
network_profile: production