ufo 5.0.7 → 6.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.cody/README.md +19 -0
- data/.cody/acceptance/bin/build.sh +90 -0
- data/.cody/acceptance/buildspec.yml +10 -0
- data/.cody/acceptance/project.rb +11 -0
- data/.cody/acceptance/role.rb +28 -0
- data/.cody/shared/script/install/ufo.sh +40 -0
- data/.cody/shared/script/install.sh +5 -0
- data/.github/workflows/main.yml +28 -0
- data/CHANGELOG.md +15 -1
- data/Gemfile +0 -2
- data/README.md +1 -32
- data/lib/templates/docker/Dockerfile +4 -0
- data/lib/templates/helper/%underscore_name%_helper.rb.tt +6 -0
- data/lib/templates/init/.ufo/config/web/base.rb +6 -0
- data/lib/templates/init/.ufo/config/web/dev.rb +6 -0
- data/lib/templates/init/.ufo/config/web/prod.rb +6 -0
- data/lib/templates/init/.ufo/config.rb.tt +39 -0
- data/lib/templates/init/.ufo/resources/iam_roles/execution_role.rb +23 -0
- data/lib/templates/init/.ufo/resources/iam_roles/task_role.rb +20 -0
- data/lib/templates/init/.ufo/resources/task_definitions/web.yml +31 -0
- data/lib/templates/init/.ufo/vars/base.rb +20 -0
- data/lib/templates/init/.ufo/vars/dev.rb +4 -0
- data/lib/templates/init/.ufo/vars/prod.rb +4 -0
- data/lib/ufo/aws_services.rb +118 -0
- data/lib/ufo/booter.rb +27 -0
- data/lib/ufo/cfn/base.rb +7 -0
- data/lib/ufo/cfn/deploy.rb +54 -0
- data/lib/ufo/{stack → cfn/stack}/builder/base.rb +12 -23
- data/lib/ufo/cfn/stack/builder/conditions.rb +25 -0
- data/lib/ufo/{stack → cfn/stack}/builder/outputs.rb +2 -2
- data/lib/ufo/cfn/stack/builder/parameters.rb +34 -0
- data/lib/ufo/cfn/stack/builder/resources/base.rb +4 -0
- data/lib/ufo/cfn/stack/builder/resources/dns.rb +47 -0
- data/lib/ufo/{stack/builder/resources/ecs.rb → cfn/stack/builder/resources/ecs_service.rb} +24 -10
- data/lib/ufo/cfn/stack/builder/resources/elb.rb +35 -0
- data/lib/ufo/cfn/stack/builder/resources/iam_roles/base.rb +32 -0
- data/lib/ufo/cfn/stack/builder/resources/iam_roles/execution_role.rb +4 -0
- data/lib/ufo/cfn/stack/builder/resources/iam_roles/task_role.rb +4 -0
- data/lib/ufo/cfn/stack/builder/resources/listener.rb +65 -0
- data/lib/ufo/cfn/stack/builder/resources/listener_ssl.rb +44 -0
- data/lib/ufo/cfn/stack/builder/resources/scaling/base.rb +5 -0
- data/lib/ufo/cfn/stack/builder/resources/scaling/policy.rb +27 -0
- data/lib/ufo/cfn/stack/builder/resources/scaling/role.rb +33 -0
- data/lib/ufo/cfn/stack/builder/resources/scaling/target.rb +22 -0
- data/lib/ufo/cfn/stack/builder/resources/security_group/base.rb +4 -0
- data/lib/ufo/{stack → cfn/stack}/builder/resources/security_group/ecs.rb +4 -4
- data/lib/ufo/{stack → cfn/stack}/builder/resources/security_group/ecs_rule.rb +2 -2
- data/lib/ufo/{stack → cfn/stack}/builder/resources/security_group/elb.rb +5 -6
- data/lib/ufo/{stack → cfn/stack}/builder/resources/target_group.rb +4 -4
- data/lib/ufo/{stack → cfn/stack}/builder/resources/task_definition/reconstructor.rb +4 -4
- data/lib/ufo/{stack → cfn/stack}/builder/resources/task_definition.rb +4 -4
- data/lib/ufo/cfn/stack/builder/resources.rb +24 -0
- data/lib/ufo/cfn/stack/builder.rb +30 -0
- data/lib/ufo/{stack → cfn/stack}/custom_properties.rb +21 -5
- data/lib/ufo/cfn/stack/params.rb +51 -0
- data/lib/ufo/{stack → cfn/stack}/status.rb +2 -2
- data/lib/ufo/cfn/stack/template.rb +8 -0
- data/lib/ufo/cfn/stack/vars.rb +110 -0
- data/lib/ufo/cfn/stack/vpc.rb +31 -0
- data/lib/ufo/cfn/stack.rb +170 -0
- data/lib/ufo/cli/base.rb +18 -0
- data/lib/ufo/cli/build.rb +30 -0
- data/lib/ufo/cli/cancel.rb +18 -0
- data/lib/ufo/cli/central/update.rb +87 -0
- data/lib/ufo/cli/central.rb +12 -0
- data/lib/ufo/cli/clean.rb +17 -0
- data/lib/ufo/cli/destroy.rb +31 -0
- data/lib/ufo/{docker.rb → cli/docker.rb} +18 -18
- data/lib/ufo/cli/exec.rb +82 -0
- data/lib/ufo/cli/help/central/update.md +20 -0
- data/lib/ufo/{help → cli/help}/completion.md +0 -0
- data/lib/ufo/{help → cli/help}/completion_script.md +0 -0
- data/lib/ufo/cli/help/destroy.md +9 -0
- data/lib/ufo/cli/help/docker/base.md +39 -0
- data/lib/ufo/{help → cli/help}/docker/build.md +9 -9
- data/lib/ufo/{help → cli/help}/docker/clean.md +8 -8
- data/lib/ufo/{help → cli/help}/docker/compile.md +0 -0
- data/lib/ufo/cli/help/docker/name.md +16 -0
- data/lib/ufo/{help → cli/help}/docker/push.md +0 -0
- data/lib/ufo/cli/help/docker.md +6 -0
- data/lib/ufo/{help → cli/help}/help.md +1 -1
- data/lib/ufo/cli/help/init.md +27 -0
- data/lib/ufo/{help → cli/help}/logs.md +5 -4
- data/lib/ufo/cli/help/ps.md +12 -0
- data/lib/ufo/cli/help/releases.md +15 -0
- data/lib/ufo/cli/help/rollback.md +40 -0
- data/lib/ufo/cli/help/scale.md +7 -0
- data/lib/ufo/cli/help/ship.md +41 -0
- data/lib/ufo/cli/help/stop.md +3 -0
- data/lib/ufo/cli/help.rb +62 -0
- data/lib/ufo/{logs.rb → cli/logs.rb} +13 -6
- data/lib/ufo/cli/new/concerns.rb +16 -0
- data/lib/ufo/cli/new/helper.rb +24 -0
- data/lib/ufo/cli/new/init.rb +68 -0
- data/lib/ufo/{sequence.rb → cli/new/sequence.rb} +26 -4
- data/lib/ufo/cli/new.rb +10 -0
- data/lib/ufo/cli/opts.rb +35 -0
- data/lib/ufo/cli/ps/errors.rb +132 -0
- data/lib/ufo/{ps → cli/ps}/task.rb +32 -34
- data/lib/ufo/cli/ps.rb +164 -0
- data/lib/ufo/{releases.rb → cli/releases.rb} +4 -4
- data/lib/ufo/{rollback.rb → cli/rollback.rb} +24 -12
- data/lib/ufo/cli/scale.rb +83 -0
- data/lib/ufo/cli/ship.rb +28 -0
- data/lib/ufo/cli/status.rb +8 -0
- data/lib/ufo/cli/stop.rb +49 -0
- data/lib/ufo/{tasks.rb → cli/tasks.rb} +2 -2
- data/lib/ufo/{upgrade.rb → cli/upgrade.rb} +2 -2
- data/lib/ufo/cli.rb +83 -172
- data/lib/ufo/command.rb +56 -1
- data/lib/ufo/concerns/autoscaling.rb +11 -0
- data/lib/ufo/concerns/names.rb +9 -0
- data/lib/ufo/concerns.rb +26 -0
- data/lib/ufo/config/inits.rb +13 -0
- data/lib/ufo/config.rb +190 -0
- data/lib/ufo/core.rb +32 -44
- data/lib/ufo/docker/builder.rb +44 -40
- data/lib/ufo/docker/cleaner.rb +9 -12
- data/lib/ufo/docker/compiler.rb +10 -4
- data/lib/ufo/docker/concerns.rb +7 -0
- data/lib/ufo/docker/dockerfile.rb +13 -9
- data/lib/ufo/docker/pusher.rb +13 -25
- data/lib/ufo/docker/state.rb +63 -0
- data/lib/ufo/ecr/auth.rb +8 -7
- data/lib/ufo/ecr/cleaner.rb +10 -14
- data/lib/ufo/ext/core/module.rb +31 -0
- data/lib/ufo/ext/core/nil_class.rb +11 -0
- data/lib/ufo/ext.rb +2 -0
- data/lib/ufo/{role → iam_role}/builder.rb +1 -1
- data/lib/ufo/{role → iam_role}/dsl.rb +8 -2
- data/lib/ufo/{role → iam_role}/registry.rb +1 -1
- data/lib/ufo/info.rb +23 -4
- data/lib/ufo/layering/layer.rb +95 -0
- data/lib/ufo/layering.rb +23 -0
- data/lib/ufo/log_group.rb +18 -10
- data/lib/ufo/logger/formatter.rb +13 -0
- data/lib/ufo/logger.rb +32 -0
- data/lib/ufo/names.rb +69 -0
- data/lib/ufo/param.rb +2 -1
- data/lib/ufo/task_definition/builder.rb +7 -0
- data/lib/ufo/task_definition/context.rb +45 -0
- data/lib/ufo/task_definition/erb/base.rb +18 -0
- data/lib/ufo/task_definition/erb/json.rb +28 -0
- data/lib/ufo/task_definition/erb/yaml.rb +25 -0
- data/lib/ufo/task_definition/erb.rb +83 -0
- data/lib/ufo/task_definition/helpers/aws_data_helper.rb +18 -0
- data/lib/ufo/task_definition/helpers/core.rb +50 -0
- data/lib/ufo/task_definition/helpers/ssm/fetcher.rb +39 -0
- data/lib/ufo/task_definition/helpers/ssm.rb +8 -0
- data/lib/ufo/task_definition/helpers/stack_output.rb +23 -0
- data/lib/ufo/{dsl/helper → task_definition/helpers}/vars.rb +40 -19
- data/lib/ufo/task_definition/helpers/vpc.rb +48 -0
- data/lib/ufo/task_definition/helpers.rb +5 -0
- data/lib/ufo/task_definition.rb +19 -0
- data/lib/ufo/upgrade/upgrade3.rb +1 -1
- data/lib/ufo/upgrade/upgrade4.rb +3 -3
- data/lib/ufo/utils/execute.rb +30 -0
- data/lib/ufo/utils/logging.rb +7 -0
- data/lib/ufo/utils/pretty.rb +18 -0
- data/lib/ufo/utils/squeezer.rb +1 -1
- data/lib/ufo/utils/sure.rb +23 -0
- data/lib/ufo/version.rb +1 -1
- data/lib/ufo/yaml/loader.rb +48 -0
- data/lib/ufo/yaml/validator.rb +51 -0
- data/lib/ufo/yaml.rb +13 -0
- data/lib/ufo.rb +12 -2
- data/spec/spec_helper.rb +4 -26
- data/spec/{lib → ufo}/ecr_auth_spec.rb +0 -0
- data/spec/{lib → ufo}/ecr_cleaner_spec.rb +0 -2
- data/spec/{lib/role → ufo/iam_role}/builder_spec.rb +5 -5
- data/spec/{lib/role → ufo/iam_role}/dsl_spec.rb +3 -3
- data/spec/{lib → ufo}/logs_spec.rb +2 -2
- data/ufo.gemspec +9 -3
- metadata +245 -341
- data/.circleci/bin/commit_docs.sh +0 -26
- data/.circleci/config.yml +0 -78
- data/.gitmodules +0 -0
- data/docs/.gitignore +0 -5
- data/docs/CNAME +0 -1
- data/docs/Gemfile +0 -4
- data/docs/LICENSE +0 -21
- data/docs/README.md +0 -20
- data/docs/_config.yml +0 -75
- data/docs/_docs/aws-ecs-task-execution-role.md +0 -28
- data/docs/_docs/conventions.md +0 -47
- data/docs/_docs/extras/codebuild-iam-role.md +0 -46
- data/docs/_docs/extras/dockerfile-erb.md +0 -60
- data/docs/_docs/extras/ecs-network-mode.md +0 -37
- data/docs/_docs/extras/load-balancer.md +0 -83
- data/docs/_docs/extras/minimal-deploy-iam.md +0 -79
- data/docs/_docs/extras/notification-arns.md +0 -21
- data/docs/_docs/extras/redirection-support.md +0 -27
- data/docs/_docs/extras/route53-support.md +0 -27
- data/docs/_docs/extras/security-groups.md +0 -36
- data/docs/_docs/extras/ssl-support.md +0 -20
- data/docs/_docs/faq.md +0 -100
- data/docs/_docs/fargate.md +0 -5
- data/docs/_docs/helpers.md +0 -24
- data/docs/_docs/iam-roles.md +0 -112
- data/docs/_docs/install.md +0 -25
- data/docs/_docs/more/auto-completion.md +0 -24
- data/docs/_docs/more/automated-cleanup.md +0 -14
- data/docs/_docs/more/customize-cloudformation.md +0 -35
- data/docs/_docs/more/migrations.md +0 -25
- data/docs/_docs/more/run-in-pieces.md +0 -30
- data/docs/_docs/more/single-task.md +0 -25
- data/docs/_docs/more/stuck-cloudformation.md +0 -29
- data/docs/_docs/more/why-cloudformation.md +0 -21
- data/docs/_docs/next-steps.md +0 -16
- data/docs/_docs/quick-start-ec2.md +0 -86
- data/docs/_docs/secrets.md +0 -135
- data/docs/_docs/settings/aws_profile.md +0 -36
- data/docs/_docs/settings/cfn.md +0 -12
- data/docs/_docs/settings/cluster.md +0 -66
- data/docs/_docs/settings/manage-security-groups.md +0 -24
- data/docs/_docs/settings/network.md +0 -45
- data/docs/_docs/settings.md +0 -55
- data/docs/_docs/ssl_errors.md +0 -40
- data/docs/_docs/structure.md +0 -41
- data/docs/_docs/tutorial-ufo-docker-build.md +0 -61
- data/docs/_docs/tutorial-ufo-init.md +0 -86
- data/docs/_docs/tutorial-ufo-ship.md +0 -95
- data/docs/_docs/tutorial-ufo-ships.md +0 -38
- data/docs/_docs/tutorial-ufo-tasks-build.md +0 -177
- data/docs/_docs/tutorial.md +0 -14
- data/docs/_docs/ufo-current.md +0 -49
- data/docs/_docs/ufo-env-extra.md +0 -22
- data/docs/_docs/ufo-env.md +0 -46
- data/docs/_docs/ufo-logs.md +0 -49
- data/docs/_docs/ufo-task-params.md +0 -43
- data/docs/_docs/ufo-tasks-register.md +0 -21
- data/docs/_docs/upgrading/upgrade4.5.md +0 -52
- data/docs/_docs/upgrading/upgrade4.md +0 -48
- data/docs/_docs/upgrading/upgrade5.md +0 -19
- data/docs/_docs/upgrading.md +0 -13
- data/docs/_docs/variables.md +0 -55
- data/docs/_includes/about.html +0 -19
- data/docs/_includes/banner/foot.html +0 -2
- data/docs/_includes/banner/head.html +0 -5
- data/docs/_includes/cfn-customize.md +0 -53
- data/docs/_includes/commands.html +0 -80
- data/docs/_includes/contact.html +0 -17
- data/docs/_includes/contact_disqus.html +0 -16
- data/docs/_includes/contact_static.html +0 -17
- data/docs/_includes/content.html +0 -26
- data/docs/_includes/css/bootstrap.min.css +0 -7
- data/docs/_includes/css/main.css +0 -501
- data/docs/_includes/css/quotes.css +0 -102
- data/docs/_includes/css/syntax.css +0 -65
- data/docs/_includes/css/table.css +0 -53
- data/docs/_includes/css/timeline.css +0 -201
- data/docs/_includes/css/ufo.css +0 -218
- data/docs/_includes/edit-on-github.html +0 -11
- data/docs/_includes/example.html +0 -63
- data/docs/_includes/footer.html +0 -44
- data/docs/_includes/google_analytics.html +0 -10
- data/docs/_includes/head.html +0 -32
- data/docs/_includes/header.html +0 -15
- data/docs/_includes/js.html +0 -32
- data/docs/_includes/js_disqus.html +0 -21
- data/docs/_includes/modals.html +0 -40
- data/docs/_includes/nav.html +0 -27
- data/docs/_includes/prev_next.md +0 -19
- data/docs/_includes/quotes.html +0 -19
- data/docs/_includes/reference.md +0 -5
- data/docs/_includes/repo_push_access.md +0 -11
- data/docs/_includes/subnav.html +0 -78
- data/docs/_includes/summary.html +0 -22
- data/docs/_includes/ufo-ship-options.md +0 -12
- data/docs/_includes/uses.html +0 -19
- data/docs/_layouts/default.html +0 -13
- data/docs/_layouts/style.css +0 -6
- data/docs/_reference/ufo-apps.md +0 -37
- data/docs/_reference/ufo-cancel.md +0 -24
- data/docs/_reference/ufo-completion.md +0 -46
- data/docs/_reference/ufo-completion_script.md +0 -27
- data/docs/_reference/ufo-current.md +0 -93
- data/docs/_reference/ufo-deploy.md +0 -76
- data/docs/_reference/ufo-destroy.md +0 -36
- data/docs/_reference/ufo-docker-base.md +0 -71
- data/docs/_reference/ufo-docker-build.md +0 -91
- data/docs/_reference/ufo-docker-clean.md +0 -44
- data/docs/_reference/ufo-docker-compile.md +0 -19
- data/docs/_reference/ufo-docker-help.md +0 -15
- data/docs/_reference/ufo-docker-name.md +0 -37
- data/docs/_reference/ufo-docker-push.md +0 -49
- data/docs/_reference/ufo-docker.md +0 -38
- data/docs/_reference/ufo-init.md +0 -125
- data/docs/_reference/ufo-logs.md +0 -40
- data/docs/_reference/ufo-network-help.md +0 -15
- data/docs/_reference/ufo-network-init.md +0 -39
- data/docs/_reference/ufo-network.md +0 -26
- data/docs/_reference/ufo-ps.md +0 -56
- data/docs/_reference/ufo-releases.md +0 -40
- data/docs/_reference/ufo-resources.md +0 -44
- data/docs/_reference/ufo-rollback.md +0 -61
- data/docs/_reference/ufo-scale.md +0 -50
- data/docs/_reference/ufo-ship.md +0 -129
- data/docs/_reference/ufo-ships.md +0 -68
- data/docs/_reference/ufo-status.md +0 -23
- data/docs/_reference/ufo-stop.md +0 -31
- data/docs/_reference/ufo-task.md +0 -56
- data/docs/_reference/ufo-tasks-build.md +0 -178
- data/docs/_reference/ufo-tasks-help.md +0 -15
- data/docs/_reference/ufo-tasks-register.md +0 -29
- data/docs/_reference/ufo-tasks.md +0 -35
- data/docs/_reference/ufo-upgrade-help.md +0 -15
- data/docs/_reference/ufo-upgrade-v2to3.md +0 -15
- data/docs/_reference/ufo-upgrade-v33to34.md +0 -15
- data/docs/_reference/ufo-upgrade-v3to4.md +0 -27
- data/docs/_reference/ufo-upgrade-v43to45.md +0 -15
- data/docs/_reference/ufo-upgrade.md +0 -29
- data/docs/_reference/ufo-version.md +0 -23
- data/docs/articles.md +0 -14
- data/docs/bin/web +0 -4
- data/docs/css/font-awesome/css/font-awesome.css +0 -1566
- data/docs/css/font-awesome/css/font-awesome.min.css +0 -4
- data/docs/css/font-awesome/fonts/FontAwesome.otf +0 -0
- data/docs/css/font-awesome/fonts/fontawesome-webfont.eot +0 -0
- data/docs/css/font-awesome/fonts/fontawesome-webfont.svg +0 -504
- data/docs/css/font-awesome/fonts/fontawesome-webfont.ttf +0 -0
- data/docs/css/font-awesome/fonts/fontawesome-webfont.woff +0 -0
- data/docs/docs.md +0 -29
- data/docs/img/docs/cloudformation-resources.png +0 -0
- data/docs/img/logos/boltops-logo-full.png +0 -0
- data/docs/img/logos/boltops-logo.png +0 -0
- data/docs/img/logos/ufo-logo-2.png +0 -0
- data/docs/img/logos/ufo-logo.png +0 -0
- data/docs/img/logos/ufo-site-header.png +0 -0
- data/docs/img/logos/ufo.jpg +0 -0
- data/docs/img/tutorials/ecs-console-task-definitions.png +0 -0
- data/docs/img/tutorials/ecs-console-ufo-ship.png +0 -0
- data/docs/img/tutorials/ecs-console-ufo-ships.png +0 -0
- data/docs/index.html +0 -10
- data/docs/js/bootstrap.js +0 -2114
- data/docs/js/bootstrap.min.js +0 -6
- data/docs/js/cbpAnimatedHeader.js +0 -44
- data/docs/js/cbpAnimatedHeader.min.js +0 -11
- data/docs/js/classie.js +0 -80
- data/docs/js/contact_me.js +0 -70
- data/docs/js/contact_me_static.js +0 -23
- data/docs/js/freelancer.js +0 -37
- data/docs/js/jqBootstrapValidation.js +0 -912
- data/docs/js/jquery-1.11.0.js +0 -4
- data/docs/js/jquery.easing.min.js +0 -44
- data/docs/js/nav.js +0 -53
- data/docs/quick-start.md +0 -133
- data/docs/reference.md +0 -29
- data/docs/style.css +0 -3
- data/docs/utils/ssl-doctor.rb +0 -89
- data/docs/utils/test-aws-api-access.rb +0 -11
- data/docs/utils/update-cert-chains.sh +0 -11
- data/lib/template/.env +0 -3
- data/lib/template/.secrets +0 -5
- data/lib/template/.ufo/iam_roles/execution_role.rb +0 -7
- data/lib/template/.ufo/iam_roles/task_role.rb +0 -21
- data/lib/template/.ufo/params.yml.tt +0 -27
- data/lib/template/.ufo/settings/cfn/default.yml.tt +0 -72
- data/lib/template/.ufo/settings/network/default.yml.tt +0 -26
- data/lib/template/.ufo/settings.yml.tt +0 -26
- data/lib/template/.ufo/task_definitions.rb.tt +0 -61
- data/lib/template/.ufo/templates/fargate.json.erb +0 -39
- data/lib/template/.ufo/templates/main.json.erb +0 -43
- data/lib/template/.ufo/variables/base.rb.tt +0 -19
- data/lib/template/.ufo/variables/development.rb +0 -8
- data/lib/template/.ufo/variables/production.rb +0 -7
- data/lib/template/Dockerfile +0 -15
- data/lib/template/bin/deploy.tt +0 -7
- data/lib/ufo/apps/cfn_map.rb +0 -70
- data/lib/ufo/apps/cluster.rb +0 -24
- data/lib/ufo/apps/service.rb +0 -56
- data/lib/ufo/apps.rb +0 -56
- data/lib/ufo/aws_service.rb +0 -36
- data/lib/ufo/base.rb +0 -35
- data/lib/ufo/cancel.rb +0 -23
- data/lib/ufo/current.rb +0 -104
- data/lib/ufo/default/settings.yml +0 -24
- data/lib/ufo/default/templates/main.json.erb +0 -39
- data/lib/ufo/destroy.rb +0 -41
- data/lib/ufo/docker/variables.rb +0 -26
- data/lib/ufo/dsl/helper.rb +0 -79
- data/lib/ufo/dsl/outputter.rb +0 -43
- data/lib/ufo/dsl/task_definition.rb +0 -108
- data/lib/ufo/dsl.rb +0 -96
- data/lib/ufo/help/apps.md +0 -12
- data/lib/ufo/help/balancer.md +0 -3
- data/lib/ufo/help/completions.md +0 -16
- data/lib/ufo/help/completions_script.md +0 -1
- data/lib/ufo/help/current.md +0 -65
- data/lib/ufo/help/deploy.md +0 -38
- data/lib/ufo/help/destroy.md +0 -9
- data/lib/ufo/help/docker/base.md +0 -49
- data/lib/ufo/help/docker/name.md +0 -16
- data/lib/ufo/help/docker.md +0 -6
- data/lib/ufo/help/init.md +0 -91
- data/lib/ufo/help/network/init.md +0 -13
- data/lib/ufo/help/ps.md +0 -27
- data/lib/ufo/help/releases.md +0 -16
- data/lib/ufo/help/resources.md +0 -20
- data/lib/ufo/help/rollback.md +0 -35
- data/lib/ufo/help/scale.md +0 -26
- data/lib/ufo/help/ship.md +0 -95
- data/lib/ufo/help/ships.md +0 -35
- data/lib/ufo/help/stop.md +0 -7
- data/lib/ufo/help/task.md +0 -27
- data/lib/ufo/help/tasks/build.md +0 -158
- data/lib/ufo/help/tasks/register.md +0 -14
- data/lib/ufo/help/tasks.md +0 -7
- data/lib/ufo/help/upgrade/v3to4.md +0 -3
- data/lib/ufo/help.rb +0 -9
- data/lib/ufo/init.rb +0 -119
- data/lib/ufo/network/fetch.rb +0 -48
- data/lib/ufo/network/helper.rb +0 -23
- data/lib/ufo/network/init.rb +0 -26
- data/lib/ufo/network.rb +0 -21
- data/lib/ufo/ps.rb +0 -129
- data/lib/ufo/scale.rb +0 -28
- data/lib/ufo/setting/profile.rb +0 -44
- data/lib/ufo/setting/security_groups.rb +0 -22
- data/lib/ufo/setting.rb +0 -75
- data/lib/ufo/settings.rb +0 -20
- data/lib/ufo/ship.rb +0 -103
- data/lib/ufo/stack/builder/conditions.rb +0 -23
- data/lib/ufo/stack/builder/parameters.rb +0 -45
- data/lib/ufo/stack/builder/resources/base.rb +0 -4
- data/lib/ufo/stack/builder/resources/dns.rb +0 -17
- data/lib/ufo/stack/builder/resources/elb.rb +0 -45
- data/lib/ufo/stack/builder/resources/listener.rb +0 -42
- data/lib/ufo/stack/builder/resources/listener_ssl.rb +0 -16
- data/lib/ufo/stack/builder/resources/roles/base.rb +0 -22
- data/lib/ufo/stack/builder/resources/roles/execution_role.rb +0 -4
- data/lib/ufo/stack/builder/resources/roles/task_role.rb +0 -4
- data/lib/ufo/stack/builder/resources/security_group/base.rb +0 -4
- data/lib/ufo/stack/builder/resources.rb +0 -20
- data/lib/ufo/stack/builder.rb +0 -26
- data/lib/ufo/stack/context.rb +0 -253
- data/lib/ufo/stack/helper.rb +0 -55
- data/lib/ufo/stack/template_body.rb +0 -13
- data/lib/ufo/stack.rb +0 -213
- data/lib/ufo/status.rb +0 -56
- data/lib/ufo/stop.rb +0 -49
- data/lib/ufo/task.rb +0 -225
- data/lib/ufo/tasks/builder.rb +0 -40
- data/lib/ufo/tasks/register.rb +0 -90
- data/lib/ufo/template_scope.rb +0 -57
- data/lib/ufo/util.rb +0 -69
- data/spec/lib/apps_spec.rb +0 -20
- data/spec/lib/builder_spec.rb +0 -23
- data/spec/lib/cli_spec.rb +0 -73
- data/spec/lib/completion_spec.rb +0 -18
- data/spec/lib/ps_spec.rb +0 -14
- data/spec/lib/register_spec.rb +0 -49
- data/spec/lib/setting_spec.rb +0 -18
- data/spec/lib/ship_spec.rb +0 -46
- data/spec/lib/stack/status_spec.rb +0 -76
- data/spec/lib/stop_spec.rb +0 -13
- data/spec/lib/task_spec.rb +0 -54
data/docs/_includes/nav.html
DELETED
@@ -1,27 +0,0 @@
|
|
1
|
-
<!-- Navigation -->
|
2
|
-
<nav class="navbar navbar-default navbar-fixed-top">
|
3
|
-
<div class="container">
|
4
|
-
<!-- Brand and toggle get grouped for better mobile display -->
|
5
|
-
<div class="navbar-header page-scroll">
|
6
|
-
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
|
7
|
-
<span class="sr-only">Toggle navigation</span>
|
8
|
-
<span class="icon-bar"></span>
|
9
|
-
<span class="icon-bar"></span>
|
10
|
-
<span class="icon-bar"></span>
|
11
|
-
</button>
|
12
|
-
<a class="navbar-brand" href="/#page-top"><img class="navbar-logo" src="/img/logos/ufo-site-header.png" />UFO</a>
|
13
|
-
</div>
|
14
|
-
|
15
|
-
<!-- Collect the nav links, forms, and other content for toggling -->
|
16
|
-
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
|
17
|
-
<ul class="nav navbar-nav navbar-right">
|
18
|
-
<li class="hidden"><a href="#page-top"></a></li>
|
19
|
-
<li class="page-scroll"><a href="{% link quick-start.md %}">Quick Start</a></li>
|
20
|
-
<li class="page-scroll"><a href="{% link docs.md %}">Docs</a></li>
|
21
|
-
<li class="page-scroll"><a href="https://github.com/tongueroo/ufo">GitHub</a></li>
|
22
|
-
</ul>
|
23
|
-
</div>
|
24
|
-
<!-- /.navbar-collapse -->
|
25
|
-
</div>
|
26
|
-
<!-- /.container-fluid -->
|
27
|
-
</nav>
|
data/docs/_includes/prev_next.md
DELETED
@@ -1,19 +0,0 @@
|
|
1
|
-
{% assign all_pages = site.pages | concat: site.docs | where_exp: "item", "item.nav_order" %}
|
2
|
-
{% assign links = all_pages | sort: "nav_order" %}
|
3
|
-
{% for link in links %}
|
4
|
-
{% if link.url == page.url %}
|
5
|
-
{% unless forloop.first %}
|
6
|
-
{% assign prev = tmpprev %}
|
7
|
-
{% endunless %}
|
8
|
-
{% if forloop.last %}
|
9
|
-
{% assign last = "/reference" %}
|
10
|
-
{% else %}
|
11
|
-
{% assign next = links[forloop.index] %}
|
12
|
-
{% endif %}
|
13
|
-
{% endif %}
|
14
|
-
{% assign tmpprev = link %}
|
15
|
-
{% endfor %}
|
16
|
-
|
17
|
-
{% if prev %}<a id="prev" class="btn btn-basic" href="{{ prev.url }}">Back</a>{% endif %}{% if last %}<a id="next" class="btn btn-primary" href="/reference">Next Step</a>{% endif %}
|
18
|
-
{% if next %}<a id="next" class="btn btn-primary" href="{{ next.url }}">Next Step</a>{% endif %}
|
19
|
-
<p class="keyboard-tip">Pro tip: Use the <- and -> arrow keys to move back and forward.</p>
|
data/docs/_includes/quotes.html
DELETED
@@ -1,19 +0,0 @@
|
|
1
|
-
<section id="quotes">
|
2
|
-
<div class="container">
|
3
|
-
<div class='row'>
|
4
|
-
<div class='col-md-offset-2 col-md-8'>
|
5
|
-
<blockquote>
|
6
|
-
<div class="row">
|
7
|
-
<div class="col-sm-3 text-center">
|
8
|
-
<img class="img-circle" src="/img/quotes/ben.jpg" style="width: 100px;height:100px;">
|
9
|
-
</div>
|
10
|
-
<div class="col-sm-9">
|
11
|
-
<p>Jack is really cool and useful while also making it so easy to start using EB. Thank you for updating the build and for the detailed instructions, it just took me under 10 minutes to set everything up initially for it- I’m shocked at how simple it was.</p>
|
12
|
-
<small>Benjamin Kanter of Tuli</small>
|
13
|
-
</div>
|
14
|
-
</div>
|
15
|
-
</blockquote>
|
16
|
-
</div>
|
17
|
-
</div>
|
18
|
-
</div>
|
19
|
-
</section>
|
data/docs/_includes/reference.md
DELETED
@@ -1,11 +0,0 @@
|
|
1
|
-
## Repo Push Access
|
2
|
-
|
3
|
-
The quick start example pushes the Docker image to a Docker repo that you have access to. This repo could be your own Dockerhub account or ECR repo. You can control the setting with the `--image` option. Example:
|
4
|
-
|
5
|
-
ufo init --image=yourusername/yourrepo # use your own Dockerhub account
|
6
|
-
|
7
|
-
Also, if you are using ECR instead, you can specify an ECR repo with the `--image` option. Example:
|
8
|
-
|
9
|
-
ufo init --image 123456789012.dkr.ecr.us-west-2.amazonaws.com/myimage
|
10
|
-
|
11
|
-
For more info, refer to the [ufo init](http://ufoships.com/reference/ufo-init/) reference docs.
|
data/docs/_includes/subnav.html
DELETED
@@ -1,78 +0,0 @@
|
|
1
|
-
<div class="col-md-3 content-nav">
|
2
|
-
<ul>
|
3
|
-
<li><a href="{% link quick-start.md %}">Quick Start: Fargate</a></li>
|
4
|
-
<li><a href="{% link _docs/quick-start-ec2.md %}">Quick Start: EC2</a></li>
|
5
|
-
<li><a href="{% link _docs/install.md %}">Installation</a></li>
|
6
|
-
<li><a href="{% link _docs/tutorial.md %}">Tutorial</a>
|
7
|
-
<ul class="tutorial">
|
8
|
-
<li><a href="{% link _docs/tutorial-ufo-init.md %}">Setup Ufo</a></li>
|
9
|
-
<li><a href="{% link _docs/tutorial-ufo-docker-build.md %}">Build Docker</a></li>
|
10
|
-
<li><a href="{% link _docs/tutorial-ufo-tasks-build.md %}">Task Definitions</a></li>
|
11
|
-
<li><a href="{% link _docs/tutorial-ufo-ship.md %}">Deploy One App</a></li>
|
12
|
-
<li><a href="{% link _docs/tutorial-ufo-ships.md %}">Deploy Multiple Apps</a></li>
|
13
|
-
</ul>
|
14
|
-
</li>
|
15
|
-
<li><a href="{% link docs.md %}">Docs</a>
|
16
|
-
<ul>
|
17
|
-
<li><a href="{% link _docs/structure.md %}">Structure</a></li>
|
18
|
-
<li><a href="{% link _docs/settings.md %}">Settings</a>
|
19
|
-
<ul>
|
20
|
-
{% assign docs = site.docs | where: "categories","settings" | sort: "order" %}
|
21
|
-
{% for doc in docs -%}
|
22
|
-
<li><a href='{{doc.url}}'>{{doc.short_title}}</a></li>
|
23
|
-
{% endfor %}
|
24
|
-
</ul>
|
25
|
-
</li>
|
26
|
-
<li><a href="{% link _docs/variables.md %}">Shared Variables</a></li>
|
27
|
-
<li><a href="{% link _docs/helpers.md %}">Helpers</a></li>
|
28
|
-
<li><a href="{% link _docs/secrets.md %}">Secrets</a></li>
|
29
|
-
<li><a href="{% link _docs/iam-roles.md %}">IAM Roles</a></li>
|
30
|
-
<li><a href="{% link _docs/conventions.md %}">Conventions</a></li>
|
31
|
-
<li><a href="{% link _docs/ufo-logs.md %}">Ufo Logs</a></li>
|
32
|
-
<li><a href="{% link _docs/ufo-env.md %}">Ufo Env</a></li>
|
33
|
-
<li><a href="{% link _docs/ufo-env-extra.md %}">Ufo Env Extra</a></li>
|
34
|
-
<li><a href="{% link _docs/ufo-current.md %}">Ufo Current</a></li>
|
35
|
-
<li><a href="{% link _docs/ufo-task-params.md %}">Ufo Task Params</a></li>
|
36
|
-
</ul>
|
37
|
-
</li>
|
38
|
-
<li>Extras
|
39
|
-
<ul>
|
40
|
-
<li><a href="{% link _docs/extras/load-balancer.md %}">Load Balancer</a></li>
|
41
|
-
<li><a href="{% link _docs/extras/security-groups.md %}">Security Groups</a></li>
|
42
|
-
<li><a href="{% link _docs/extras/ecs-network-mode.md %}">ECS Network Mode</a></li>
|
43
|
-
<li><a href="{% link _docs/extras/ssl-support.md %}">SSL Support</a></li>
|
44
|
-
<li><a href="{% link _docs/extras/route53-support.md %}">Route53 Support</a></li>
|
45
|
-
<li><a href="{% link _docs/extras/redirection-support.md %}">Redirection Support</a></li>
|
46
|
-
<li><a href="{% link _docs/extras/minimal-deploy-iam.md %}">Minimal Deploy IAM</a></li>
|
47
|
-
<li><a href="{% link _docs/extras/codebuild-iam-role.md %}">CodeBuild IAM Role</a></li>
|
48
|
-
<li><a href="{% link _docs/extras/dockerfile-erb.md %}">Dockerfile.erb</a></li>
|
49
|
-
<li><a href="{% link _docs/extras/notification-arns.md %}">Notification Arns</a></li>
|
50
|
-
</ul>
|
51
|
-
</li>
|
52
|
-
<li><a href="{% link _docs/upgrading.md %}">Upgrading</a>
|
53
|
-
<ul>
|
54
|
-
{% assign docs = site.docs | where: "categories","upgrading" | sort: "order" %}
|
55
|
-
{% for doc in docs -%}
|
56
|
-
<li><a href='{{doc.url}}'>{{doc.short_title}}</a></li>
|
57
|
-
{% endfor %}
|
58
|
-
</ul>
|
59
|
-
</li>
|
60
|
-
<li>More
|
61
|
-
<ul>
|
62
|
-
<li><a href="{% link _docs/more/why-cloudformation.md %}">Why CloudFormation</a></li>
|
63
|
-
<li><a href="{% link _docs/more/customize-cloudformation.md %}">Customize CloudFormation</a></li>
|
64
|
-
<li><a href="{% link _docs/more/stuck-cloudformation.md %}">Stuck CloudFormation</a></li>
|
65
|
-
<li><a href="{% link _docs/more/run-in-pieces.md %}">Run In Steps</a></li>
|
66
|
-
<li><a href="{% link _docs/more/single-task.md %}">Run Single Task</a></li>
|
67
|
-
<li><a href="{% link _docs/more/migrations.md %}">Database Migrations</a></li>
|
68
|
-
<li><a href="{% link _docs/more/automated-cleanup.md %}">Automated Cleanup</a></li>
|
69
|
-
<li><a href="{% link _docs/more/auto-completion.md %}">Auto-Completion</a></li>
|
70
|
-
<li><a href="{% link _docs/faq.md %}">FAQ</a></li>
|
71
|
-
<li><a href="{% link articles.md %}">Articles</a></li>
|
72
|
-
<li><a href="{% link _docs/next-steps.md %}">Next Steps</a></li>
|
73
|
-
<li><a href="{% link reference.md %}">CLI Reference</a></li>
|
74
|
-
</ul>
|
75
|
-
</li>
|
76
|
-
</li>
|
77
|
-
</ul>
|
78
|
-
</div>
|
data/docs/_includes/summary.html
DELETED
@@ -1,22 +0,0 @@
|
|
1
|
-
<section id="summary">
|
2
|
-
<div class="container">
|
3
|
-
<div class="row">
|
4
|
-
<div class="col-lg-12 text-center">
|
5
|
-
<h2>Summary</h2>
|
6
|
-
<hr class="star-light">
|
7
|
-
</div>
|
8
|
-
</div>
|
9
|
-
<div class="row">
|
10
|
-
<div class="col-lg-6 col-lg-offset-3">
|
11
|
-
<p>The main command is <code>ufo ship</code>. Here's what it does:</p>
|
12
|
-
|
13
|
-
<ol class="landing-summary">
|
14
|
-
<li>Builds a docker image.</li>
|
15
|
-
<li>Registers the ECS template definition.</li>
|
16
|
-
<li>Deploys to ECS.</li>
|
17
|
-
<li>Creates an ELB.</li>
|
18
|
-
</ol>
|
19
|
-
</div>
|
20
|
-
</div>
|
21
|
-
</div>
|
22
|
-
</section>
|
@@ -1,12 +0,0 @@
|
|
1
|
-
{:.ship-options}
|
2
|
-
Option | Description
|
3
|
-
------------- | -------------
|
4
|
-
`--cluster` | This decides what cluster to use. This can also be set in ufo/settings.yml covered in [Settings]({% link _docs/settings.md %}). The cli option takes highest precedence.
|
5
|
-
`--ecr-keep` | This integer option determines how many old docker images to keep around. Ufo will automatically delete and clean up docker images at the end of this process. The default is to keep all. If you set this, set it at a reasonable high number like 30.
|
6
|
-
`--elb-eip-ids` | EIP Allocation ids to use for network load balancer. If specified then `--elb-type` is automatically assumed to be `network`.
|
7
|
-
`--elb-type` | ELB type: application or network. Keep current deployed elb type when not specified.
|
8
|
-
`--elb` | Decides to create elb, not create elb or use existing target group.
|
9
|
-
`--pretty` | This boolean option determines ufo generates the task definitions in output in a pretty human readable format.
|
10
|
-
`--stop-old-tasks` | This boolean option determines if ufo will call ecs stop-task on the old tasks after deployment. Sometimes old tasks hang around for a little bit with ECS this forces them along a little quicker. This option forceably kills running tasks, so configuring `deregistration_delay.timeout_seconds` is recommended in the cfn settings instead. Note, it seems like deregistration_delay is currently is respected for Application ELBs but not Network ELBs.
|
11
|
-
`--task` | By convention ufo uses the same name for both the ECS service and task definition. You can override this convention with this option. The conventions are covered on the [Conventions]({% link _docs/conventions.md %}) page.
|
12
|
-
`--wait` | This boolean option determines if ufo blocks and waits until the service has been deployed before continuing.
|
data/docs/_includes/uses.html
DELETED
@@ -1,19 +0,0 @@
|
|
1
|
-
<section id="timeline">
|
2
|
-
<div class="container">
|
3
|
-
<div class="row">
|
4
|
-
<div class="col-lg-12 text-center">
|
5
|
-
<h2 class="section-heading">Example Uses</h2>
|
6
|
-
<!-- <h3 class="section-subheading text-muted">Workflow process.</h3> -->
|
7
|
-
</div>
|
8
|
-
</div>
|
9
|
-
<div class="row">
|
10
|
-
<div class="col-lg-6 col-lg-offset-3">
|
11
|
-
<ul class="use-cases">
|
12
|
-
<li>Allows codification of the infrastructure by downloading the configuration. You can save the downloaded configs into version control.</li>
|
13
|
-
<li>Safely upload new configs by previewing the changes before actually uploading and applying the configuration to the infrastructure.</li>
|
14
|
-
<li>Moving EB enviroments from one EB application to another EB application. EB provides a way to clone environments within an application but is unable to move the enivornment to an entirely new application. This is useful if you want to "rename" the EB application.</li>
|
15
|
-
</ul>
|
16
|
-
</div>
|
17
|
-
</div>
|
18
|
-
</div>
|
19
|
-
</section>
|
data/docs/_layouts/default.html
DELETED
@@ -1,13 +0,0 @@
|
|
1
|
-
<!DOCTYPE html>
|
2
|
-
<html>
|
3
|
-
{% include head.html %}
|
4
|
-
<body id="page-top" class="index">
|
5
|
-
{% include banner/head.html %}
|
6
|
-
{% include nav.html %}
|
7
|
-
{% include content.html %}
|
8
|
-
{% include footer.html %}
|
9
|
-
{% include modals.html %}
|
10
|
-
{% include banner/foot.html %}
|
11
|
-
{% include js.html %}
|
12
|
-
</body>
|
13
|
-
</html>
|
data/docs/_layouts/style.css
DELETED
data/docs/_reference/ufo-apps.md
DELETED
@@ -1,37 +0,0 @@
|
|
1
|
-
---
|
2
|
-
title: ufo apps
|
3
|
-
reference: true
|
4
|
-
---
|
5
|
-
|
6
|
-
## Usage
|
7
|
-
|
8
|
-
ufo apps
|
9
|
-
|
10
|
-
## Description
|
11
|
-
|
12
|
-
List apps.
|
13
|
-
|
14
|
-
This command lists ECS services for an ECS cluster. It includes ECS services that were not created by ufo also. A `Ufo?` column value of `yes` indicates that the ECS service was created by ufo version 4 and above. If the service was created with ufo version 3 and below then it will show up as `no`.
|
15
|
-
|
16
|
-
## Examples
|
17
|
-
|
18
|
-
$ ufo apps
|
19
|
-
Listing ECS services in the development cluster.
|
20
|
-
+--------------------------------------------------+-----------------+---------+-------------+------+
|
21
|
-
| Service Name | Task Definition | Running | Launch type | Ufo? |
|
22
|
-
+--------------------------------------------------+-----------------+---------+-------------+------+
|
23
|
-
| development-demo-web-Ecs-7GAUAXH5F56M (demo-web) | demo-web:85 | 2 | FARGATE | yes |
|
24
|
-
+--------------------------------------------------+-----------------+---------+-------------+------+
|
25
|
-
$
|
26
|
-
|
27
|
-
|
28
|
-
## Options
|
29
|
-
|
30
|
-
```
|
31
|
-
[--clusters=one two three] # List of clusters
|
32
|
-
[--verbose], [--no-verbose]
|
33
|
-
[--mute], [--no-mute]
|
34
|
-
[--noop], [--no-noop]
|
35
|
-
[--cluster=CLUSTER] # Cluster. Overrides .ufo/settings.yml.
|
36
|
-
```
|
37
|
-
|
@@ -1,24 +0,0 @@
|
|
1
|
-
---
|
2
|
-
title: ufo cancel
|
3
|
-
reference: true
|
4
|
-
---
|
5
|
-
|
6
|
-
## Usage
|
7
|
-
|
8
|
-
ufo cancel SERVICE
|
9
|
-
|
10
|
-
## Description
|
11
|
-
|
12
|
-
Cancel creation or update of the ECS service.
|
13
|
-
|
14
|
-
|
15
|
-
## Options
|
16
|
-
|
17
|
-
```
|
18
|
-
[--sure], [--no-sure] # By pass are you sure prompt.
|
19
|
-
[--verbose], [--no-verbose]
|
20
|
-
[--mute], [--no-mute]
|
21
|
-
[--noop], [--no-noop]
|
22
|
-
[--cluster=CLUSTER] # Cluster. Overrides .ufo/settings.yml.
|
23
|
-
```
|
24
|
-
|
@@ -1,46 +0,0 @@
|
|
1
|
-
---
|
2
|
-
title: ufo completion
|
3
|
-
reference: true
|
4
|
-
---
|
5
|
-
|
6
|
-
## Usage
|
7
|
-
|
8
|
-
ufo completion *PARAMS
|
9
|
-
|
10
|
-
## Description
|
11
|
-
|
12
|
-
Prints words for auto-completion.
|
13
|
-
|
14
|
-
Example:
|
15
|
-
|
16
|
-
ufo completion
|
17
|
-
|
18
|
-
Prints words for TAB auto-completion.
|
19
|
-
|
20
|
-
## Examples
|
21
|
-
|
22
|
-
ufo completion
|
23
|
-
ufo completion ship
|
24
|
-
ufo completion docker
|
25
|
-
|
26
|
-
To enable, TAB auto-completion add the following to your profile:
|
27
|
-
|
28
|
-
eval $(ufo completion_script)
|
29
|
-
|
30
|
-
Auto-completion example usage:
|
31
|
-
|
32
|
-
ufo [TAB]
|
33
|
-
ufo ship [TAB]
|
34
|
-
ufo docker build [TAB]
|
35
|
-
ufo docker build --[TAB]
|
36
|
-
|
37
|
-
|
38
|
-
## Options
|
39
|
-
|
40
|
-
```
|
41
|
-
[--verbose], [--no-verbose]
|
42
|
-
[--mute], [--no-mute]
|
43
|
-
[--noop], [--no-noop]
|
44
|
-
[--cluster=CLUSTER] # Cluster. Overrides .ufo/settings.yml.
|
45
|
-
```
|
46
|
-
|
@@ -1,27 +0,0 @@
|
|
1
|
-
---
|
2
|
-
title: ufo completion_script
|
3
|
-
reference: true
|
4
|
-
---
|
5
|
-
|
6
|
-
## Usage
|
7
|
-
|
8
|
-
ufo completion_script
|
9
|
-
|
10
|
-
## Description
|
11
|
-
|
12
|
-
Generates a script that can be eval to setup auto-completion.
|
13
|
-
|
14
|
-
To use, add the following to your `~/.bashrc` or `~/.profile`
|
15
|
-
|
16
|
-
eval $(ufo completion_script)
|
17
|
-
|
18
|
-
|
19
|
-
## Options
|
20
|
-
|
21
|
-
```
|
22
|
-
[--verbose], [--no-verbose]
|
23
|
-
[--mute], [--no-mute]
|
24
|
-
[--noop], [--no-noop]
|
25
|
-
[--cluster=CLUSTER] # Cluster. Overrides .ufo/settings.yml.
|
26
|
-
```
|
27
|
-
|
@@ -1,93 +0,0 @@
|
|
1
|
-
---
|
2
|
-
title: ufo current
|
3
|
-
reference: true
|
4
|
-
---
|
5
|
-
|
6
|
-
## Usage
|
7
|
-
|
8
|
-
ufo current SERVICE
|
9
|
-
|
10
|
-
## Description
|
11
|
-
|
12
|
-
Switch the current service. Saves to `.ufo/current`
|
13
|
-
|
14
|
-
Sets a current service to remember so you do not have to provide the service name all the time. This shortens the commands
|
15
|
-
|
16
|
-
ufo ship demo-web # before
|
17
|
-
ufo current --service demo-web
|
18
|
-
ufo ship # after
|
19
|
-
|
20
|
-
The state information is written to `.ufo/current`.
|
21
|
-
|
22
|
-
## Examples
|
23
|
-
|
24
|
-
### summary
|
25
|
-
|
26
|
-
ufo current --service demo-web --env-extra 1
|
27
|
-
ufo current --service demo-web --env-extra 1 --services demo-web demo-worker
|
28
|
-
ufo current --service demo-web --env-extra ''
|
29
|
-
ufo current --service demo-web
|
30
|
-
ufo current --env-extra '1'
|
31
|
-
|
32
|
-
### service
|
33
|
-
|
34
|
-
To set current service:
|
35
|
-
|
36
|
-
ufo current --service demo-web
|
37
|
-
ufo current --service demo-worker
|
38
|
-
ufo current --service demo-web
|
39
|
-
|
40
|
-
To view current service, run `ufo current` without any arguments.
|
41
|
-
|
42
|
-
$ ufo current
|
43
|
-
Current service: demo-web
|
44
|
-
|
45
|
-
To remove current service:
|
46
|
-
|
47
|
-
ufo current --service ''
|
48
|
-
|
49
|
-
### env-extra
|
50
|
-
|
51
|
-
To also set a current `UFO_ENV_EXTRA`.
|
52
|
-
|
53
|
-
ufo current --env-extra 1
|
54
|
-
|
55
|
-
The extra env setting will be reflected:
|
56
|
-
|
57
|
-
$ ufo current
|
58
|
-
Current service: demo-web
|
59
|
-
Current env_extra: 1
|
60
|
-
|
61
|
-
The `UFO_ENV_EXTRA` variable takes higher precedence than the current setting in the saved file.
|
62
|
-
|
63
|
-
To unset:
|
64
|
-
|
65
|
-
ufo current --env-extra ''
|
66
|
-
|
67
|
-
### services
|
68
|
-
|
69
|
-
The ufo ships command builds one docker image and deploys it to multiple ECS services. You can also have ufo remember what services to use with the current command.
|
70
|
-
|
71
|
-
ufo current --services demo-web demo-worker
|
72
|
-
ufo ships # will depoy to both demo-web and demo-worker
|
73
|
-
|
74
|
-
### rm all
|
75
|
-
|
76
|
-
To remove all current settings use the `--rm` option.
|
77
|
-
|
78
|
-
ufo current --rm
|
79
|
-
|
80
|
-
|
81
|
-
## Options
|
82
|
-
|
83
|
-
```
|
84
|
-
[--rm], [--no-rm] # Remove all current settings. Removes `.ufo/current`
|
85
|
-
[--service=SERVICE] # Sets service as a current setting.
|
86
|
-
[--services=one two three] # Sets services as a current setting. This is used for ufo ships.
|
87
|
-
[--env-extra=ENV_EXTRA] # Sets UFO_ENV_EXTRA as a current setting.
|
88
|
-
[--verbose], [--no-verbose]
|
89
|
-
[--mute], [--no-mute]
|
90
|
-
[--noop], [--no-noop]
|
91
|
-
[--cluster=CLUSTER] # Cluster. Overrides .ufo/settings.yml.
|
92
|
-
```
|
93
|
-
|
@@ -1,76 +0,0 @@
|
|
1
|
-
---
|
2
|
-
title: ufo deploy
|
3
|
-
reference: true
|
4
|
-
---
|
5
|
-
|
6
|
-
## Usage
|
7
|
-
|
8
|
-
ufo deploy SERVICE
|
9
|
-
|
10
|
-
## Description
|
11
|
-
|
12
|
-
Deploy task definition to ECS service without re-building the definition.
|
13
|
-
|
14
|
-
It is useful to sometimes deploy only the task definition without re-building it. Say for example, you are debugging the task definition and just want to directly edit the `.ufo/output/demo-web.json` definition. You can accomplish this with the `ufo deploy` command. The `ufo deploy` command will deploy the task definition in `.ufo/output` unmodified. Example:
|
15
|
-
|
16
|
-
ufo deploy demo-web
|
17
|
-
|
18
|
-
The above command does the following:
|
19
|
-
|
20
|
-
1. register the `.ufo/output/demo-web.json` task definition to ECS untouched.
|
21
|
-
2. deploys it to ECS by updating the service
|
22
|
-
|
23
|
-
## ufo tasks build
|
24
|
-
|
25
|
-
To regenerate a `.ufo/output/demo-web.json` definition:
|
26
|
-
|
27
|
-
ufo tasks build
|
28
|
-
|
29
|
-
## ufo ship
|
30
|
-
|
31
|
-
The `ufo deploy` command does less than the `ufo ship` command. Normally, it is recommended to use `ufo ship` over the `ufo deploy` command to do everything in one step:
|
32
|
-
|
33
|
-
1. build the Docker image
|
34
|
-
2. register the ECS task definition
|
35
|
-
3. update the ECS service
|
36
|
-
|
37
|
-
The `ufo ships`, `ufo ship`, `ufo deploy` command support the same options. The options are presented here again for convenience:
|
38
|
-
|
39
|
-
{% include ufo-ship-options.md %}
|
40
|
-
|
41
|
-
## Creating mutiple environments in parallel
|
42
|
-
|
43
|
-
If you would like to create multiple enviroments quickly in parallel, the `--no-wait` and `--build` option can help speed up the process. Example:
|
44
|
-
|
45
|
-
ufo ship # at least once
|
46
|
-
for i in {1..3}; do
|
47
|
-
UFO_ENV_EXTRA=$i ufo deploy --no-wait --build
|
48
|
-
done
|
49
|
-
|
50
|
-
A more detailed post is available here: [How to Create Unlimited Extra Environments
|
51
|
-
](https://blog.boltops.com/2018/07/12/ufo-how-to-create-unlimited-extra-environments).
|
52
|
-
|
53
|
-
|
54
|
-
## Options
|
55
|
-
|
56
|
-
```
|
57
|
-
[--ecr-keep=N] # ECR specific cleanup of old images. Specifies how many images to keep. Only runs if the images are ECR images. Defaults keeps all images.
|
58
|
-
[--elb=ELB] # Decides to create elb, not create elb or use existing target group.
|
59
|
-
[--elb-eip-ids=one two three] # EIP Allocation ids to use for network load balancer.
|
60
|
-
[--elb-type=ELB_TYPE] # ELB type: application or network. Keep current deployed elb type when not specified.
|
61
|
-
[--scheduling-strategy=SCHEDULING_STRATEGY] # Scheduling strategy to use for the service. IE: replica, daemon
|
62
|
-
[--stop-old-tasks], [--no-stop-old-tasks] # Stop old tasks as part of deployment to speed it up
|
63
|
-
[--task=TASK] # ECS task name, to override the task name convention.
|
64
|
-
[--wait], [--no-wait] # Wait for deployment to complete
|
65
|
-
# Default: true
|
66
|
-
[--image-override=IMAGE_OVERRIDE] # Override image in task definition for quick testing
|
67
|
-
[--register], [--no-register] # Register task definition
|
68
|
-
# Default: true
|
69
|
-
[--build], [--no-build] # Build task definition
|
70
|
-
# Default: true
|
71
|
-
[--verbose], [--no-verbose]
|
72
|
-
[--mute], [--no-mute]
|
73
|
-
[--noop], [--no-noop]
|
74
|
-
[--cluster=CLUSTER] # Cluster. Overrides .ufo/settings.yml.
|
75
|
-
```
|
76
|
-
|
@@ -1,36 +0,0 @@
|
|
1
|
-
---
|
2
|
-
title: ufo destroy
|
3
|
-
reference: true
|
4
|
-
---
|
5
|
-
|
6
|
-
## Usage
|
7
|
-
|
8
|
-
ufo destroy SERVICE
|
9
|
-
|
10
|
-
## Description
|
11
|
-
|
12
|
-
Destroy the ECS service.
|
13
|
-
|
14
|
-
## Examples
|
15
|
-
|
16
|
-
Ufo provides a quick way to destroy an ECS service. This is effectively the same thing as deleting the CloudFormation stack.
|
17
|
-
|
18
|
-
ufo destroy demo-web
|
19
|
-
|
20
|
-
If you would like to bypass the prompt, you can use the `--sure` option.
|
21
|
-
|
22
|
-
ufo destroy demo-web --sure
|
23
|
-
|
24
|
-
|
25
|
-
## Options
|
26
|
-
|
27
|
-
```
|
28
|
-
[--sure], [--no-sure] # By pass are you sure prompt.
|
29
|
-
[--wait], [--no-wait] # Wait for completion
|
30
|
-
# Default: true
|
31
|
-
[--verbose], [--no-verbose]
|
32
|
-
[--mute], [--no-mute]
|
33
|
-
[--noop], [--no-noop]
|
34
|
-
[--cluster=CLUSTER] # Cluster. Overrides .ufo/settings.yml.
|
35
|
-
```
|
36
|
-
|