lono 7.5.2 → 8.0.0.pre.rc1
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 +5 -15
- data/.cody/acceptance/bin/build.sh +52 -0
- data/.cody/acceptance/buildspec.yml +10 -0
- data/.cody/acceptance/project.rb +6 -0
- data/.cody/{role.rb → acceptance/role.rb} +0 -0
- data/.cody/shared/script/install/lono.sh +40 -0
- data/.cody/shared/script/install.sh +5 -0
- data/CHANGELOG.md +21 -4
- data/CONTRIBUTING.md +2 -2
- data/Gemfile +5 -1
- data/LICENSE.txt +201 -1
- data/README.md +4 -4
- data/lib/lono/api/client.rb +3 -2
- data/lib/lono/app/inits.rb +13 -0
- data/lib/lono/app.rb +71 -0
- data/lib/lono/app_file/base.rb +1 -1
- data/lib/lono/app_file/build/lambda_layer/ruby_packager.rb +9 -9
- data/lib/lono/app_file/build/lambda_layer.rb +3 -3
- data/lib/lono/app_file/build.rb +9 -14
- data/lib/lono/app_file/registry/item.rb +4 -4
- data/lib/lono/app_file/upload.rb +1 -1
- data/lib/lono/autoloader.rb +2 -2
- data/lib/lono/aws_services/helper.rb +43 -6
- data/lib/lono/aws_services.rb +37 -6
- data/lib/lono/blueprint.rb +18 -9
- data/lib/lono/booter.rb +28 -0
- data/lib/lono/{template → builder}/context/helpers.rb +1 -1
- data/lib/lono/{template → builder}/context/loader/load_files.rb +5 -6
- data/lib/lono/builder/context/loader.rb +35 -0
- data/lib/lono/builder/context/params.rb +7 -0
- data/lib/lono/{template → builder}/context/ssm_fetcher.rb +1 -1
- data/lib/lono/{template → builder}/context.rb +5 -9
- data/lib/lono/{param/generator.rb → builder/param.rb} +21 -22
- data/lib/lono/builder/template/aws_service.rb +15 -0
- data/lib/lono/builder/template/bashify.rb +43 -0
- data/lib/lono/{template → builder/template}/configset_injector.rb +4 -4
- data/lib/lono/{template/strategy/dsl/builder → builder/template/dsl/evaluator}/fn.rb +2 -2
- data/lib/lono/{template/strategy/dsl/builder → builder/template/dsl/evaluator}/helpers/core_helper.rb +1 -1
- data/lib/lono/{template/strategy/dsl/builder → builder/template/dsl/evaluator}/helpers/ec2_helper.rb +1 -1
- data/lib/lono/{template/strategy/dsl/builder → builder/template/dsl/evaluator}/helpers/file_helper.rb +8 -12
- data/lib/lono/{template/strategy/dsl/builder → builder/template/dsl/evaluator}/helpers/s3_helper.rb +2 -2
- data/lib/lono/{template/strategy/dsl/builder → builder/template/dsl/evaluator}/helpers/stack_helper.rb +11 -8
- data/lib/lono/{template/strategy/dsl/builder → builder/template/dsl/evaluator}/helpers/tags_helper.rb +1 -1
- data/lib/lono/{template/strategy/dsl/builder → builder/template/dsl/evaluator}/helpers.rb +2 -2
- data/lib/lono/builder/template/dsl/evaluator/section/base.rb +23 -0
- data/lib/lono/{template/strategy/dsl/builder → builder/template/dsl/evaluator}/section/condition.rb +1 -1
- data/lib/lono/{template/strategy/dsl/builder → builder/template/dsl/evaluator}/section/mapping.rb +1 -1
- data/lib/lono/{template/strategy/dsl/builder → builder/template/dsl/evaluator}/section/methods.rb +7 -7
- data/lib/lono/{template/strategy/dsl/builder → builder/template/dsl/evaluator}/section/output.rb +1 -1
- data/lib/lono/{template/strategy/dsl/builder → builder/template/dsl/evaluator}/section/parameter.rb +1 -1
- data/lib/lono/{template/strategy/dsl/builder → builder/template/dsl/evaluator}/section/resource/property_mover.rb +1 -1
- data/lib/lono/{template/strategy/dsl/builder → builder/template/dsl/evaluator}/section/resource.rb +1 -1
- data/lib/lono/{template/strategy/dsl/builder → builder/template/dsl/evaluator}/section/section.rb +1 -1
- data/lib/lono/{template/strategy/dsl/builder → builder/template/dsl/evaluator}/squeezer.rb +1 -1
- data/lib/lono/{template/strategy/dsl/builder → builder/template/dsl/evaluator}/stringify.rb +1 -1
- data/lib/lono/{template/strategy/dsl/builder → builder/template/dsl/evaluator}/syntax/extend_with.rb +1 -1
- data/lib/lono/{template/strategy/dsl/builder → builder/template/dsl/evaluator}/syntax/parameter_group.rb +1 -1
- data/lib/lono/{template/strategy/dsl/builder → builder/template/dsl/evaluator}/syntax.rb +3 -3
- data/lib/lono/builder/template/dsl/evaluator.rb +45 -0
- data/lib/lono/{template/strategy → builder/template}/dsl/finalizer/parameter_groups.rb +2 -2
- data/lib/lono/{template/strategy → builder/template}/dsl/finalizer.rb +1 -1
- data/lib/lono/builder/template/dsl.rb +14 -0
- data/lib/lono/{template → builder/template}/evaluate.rb +18 -6
- data/lib/lono/builder/template/helpers.rb +149 -0
- data/lib/lono/{output/template.rb → builder/template/output.rb} +14 -7
- data/lib/lono/{template → builder/template}/post_processor.rb +4 -4
- data/lib/lono/{template → builder/template}/upload.rb +3 -5
- data/lib/lono/builder/template.rb +55 -0
- data/lib/lono/bundler/cli/base.rb +10 -0
- data/lib/lono/bundler/cli/bundle.rb +44 -0
- data/lib/lono/bundler/cli/clean.rb +27 -0
- data/lib/lono/bundler/cli/help/bundle.md +3 -0
- data/lib/lono/bundler/cli/help.rb +11 -0
- data/lib/lono/bundler/cli.rb +7 -0
- data/lib/lono/bundler/component/concerns/local_concern.rb +10 -0
- data/lib/lono/bundler/component/concerns/notation_concern.rb +59 -0
- data/lib/lono/bundler/component/concerns/path_concern.rb +68 -0
- data/lib/lono/bundler/component/concerns/stack_concern.rb +60 -0
- data/lib/lono/bundler/component/fetcher/base.rb +27 -0
- data/lib/lono/bundler/component/fetcher/gcs.rb +69 -0
- data/lib/lono/bundler/component/fetcher/git.rb +69 -0
- data/lib/lono/bundler/component/fetcher/local.rb +15 -0
- data/lib/lono/bundler/component/fetcher/s3.rb +66 -0
- data/lib/lono/bundler/component/fetcher.rb +18 -0
- data/lib/lono/bundler/component/http/concern.rb +45 -0
- data/lib/lono/bundler/component/http/source.rb +19 -0
- data/lib/lono/bundler/component/org_repo.rb +65 -0
- data/lib/lono/bundler/component/props/extension.rb +19 -0
- data/lib/lono/bundler/component/props/typer.rb +41 -0
- data/lib/lono/bundler/component/props.rb +122 -0
- data/lib/lono/bundler/component/registry.rb +136 -0
- data/lib/lono/bundler/component.rb +52 -0
- data/lib/lono/bundler/config.rb +18 -0
- data/lib/lono/bundler/dsl/syntax.rb +46 -0
- data/lib/lono/bundler/dsl.rb +21 -0
- data/lib/lono/bundler/exporter/base.rb +6 -0
- data/lib/lono/bundler/exporter/copy.rb +22 -0
- data/lib/lono/bundler/exporter.rb +50 -0
- data/lib/lono/bundler/extract/tar.rb +34 -0
- data/lib/lono/bundler/extract/zip.rb +16 -0
- data/lib/lono/bundler/info.rb +39 -0
- data/lib/lono/bundler/list.rb +26 -0
- data/lib/lono/bundler/lockfile/version_comparer.rb +56 -0
- data/lib/lono/bundler/lockfile/yamler.rb +36 -0
- data/lib/lono/bundler/lockfile.rb +66 -0
- data/lib/lono/bundler/lonofile.rb +32 -0
- data/lib/lono/bundler/runner.rb +27 -0
- data/lib/lono/bundler/syncer.rb +70 -0
- data/lib/lono/bundler/util/git.rb +37 -0
- data/lib/lono/bundler/util/logging.rb +7 -0
- data/lib/lono/bundler/util/sure.rb +5 -0
- data/lib/lono/{bundle.rb → bundler.rb} +38 -4
- data/lib/lono/cfn/base.rb +9 -195
- data/lib/lono/cfn/cancel.rb +9 -26
- data/lib/lono/cfn/concerns/build.rb +10 -0
- data/lib/lono/cfn/concerns/template_output.rb +10 -0
- data/lib/lono/cfn/concerns.rb +43 -0
- data/lib/lono/cfn/delete.rb +8 -32
- data/lib/lono/cfn/deploy/base.rb +4 -0
- data/lib/lono/cfn/deploy/iam.rb +49 -0
- data/lib/lono/cfn/deploy/notification.rb +8 -0
- data/lib/lono/cfn/deploy/operable.rb +18 -0
- data/lib/lono/cfn/deploy/opts.rb +49 -0
- data/lib/lono/cfn/deploy/rollback.rb +46 -0
- data/lib/lono/cfn/deploy/tags.rb +18 -0
- data/lib/lono/cfn/deploy.rb +71 -5
- data/lib/lono/cfn/download.rb +5 -7
- data/lib/lono/cfn/output.rb +49 -0
- data/lib/lono/cfn/plan/base.rb +19 -0
- data/lib/lono/cfn/plan/changeset/base.rb +19 -0
- data/lib/lono/cfn/plan/changeset/notifications.rb +24 -0
- data/lib/lono/cfn/plan/changeset/outputs.rb +25 -0
- data/lib/lono/cfn/plan/changeset/resources.rb +48 -0
- data/lib/lono/cfn/plan/changeset/tags.rb +16 -0
- data/lib/lono/cfn/plan/changeset.rb +136 -0
- data/lib/lono/cfn/plan/concerns.rb +10 -0
- data/lib/lono/cfn/plan/delete.rb +16 -0
- data/lib/lono/cfn/plan/diff/base.rb +10 -0
- data/lib/lono/cfn/plan/diff/data.rb +52 -0
- data/lib/lono/cfn/plan/diff/file.rb +56 -0
- data/lib/lono/cfn/plan/new.rb +26 -0
- data/lib/lono/cfn/{preview → plan}/param.rb +26 -34
- data/lib/lono/cfn/plan/summary.rb +16 -0
- data/lib/lono/cfn/plan/template.rb +28 -0
- data/lib/lono/cfn/plan.rb +33 -0
- data/lib/lono/cfn/show.rb +30 -0
- data/lib/lono/cfn/status.rb +1 -1
- data/lib/lono/cli/abstract.rb +17 -0
- data/lib/lono/cli/base.rb +9 -0
- data/lib/lono/cli/build.rb +101 -0
- data/lib/lono/cli/bundle.rb +21 -0
- data/lib/lono/cli/cfn/opts.rb +59 -0
- data/lib/lono/cli/cfn.rb +19 -0
- data/lib/lono/cli/clean.rb +22 -0
- data/lib/lono/{code.rb → cli/code.rb} +2 -2
- data/lib/lono/{completion.rb → cli/completion.rb} +2 -2
- data/lib/lono/{help → cli/help}/blueprint/new.md +4 -4
- data/lib/lono/{help/generate.md → cli/help/build.md} +6 -6
- data/lib/lono/{help → cli/help}/cfn/cancel.md +0 -0
- data/lib/lono/cli/help/cfn/download.md +3 -0
- data/lib/lono/{help → cli/help}/cfn/preview.md +9 -8
- data/lib/lono/{help → cli/help}/cfn/status.md +0 -0
- data/lib/lono/cli/help/cfn.md +4 -0
- data/lib/lono/{help → cli/help}/code/convert.md +0 -0
- data/lib/lono/{help → cli/help}/code/import.md +2 -2
- data/lib/lono/{help → cli/help}/completion.md +3 -3
- data/lib/lono/{help → cli/help}/completion_script.md +0 -0
- data/lib/lono/{help → cli/help}/configsets.md +0 -0
- data/lib/lono/cli/help/down.md +13 -0
- data/lib/lono/cli/help/new/project.md +34 -0
- data/lib/lono/{help → cli/help}/param/generate.md +0 -0
- data/lib/lono/cli/help/param.md +6 -0
- data/lib/lono/{help → cli/help}/pro/blueprints.md +0 -0
- data/lib/lono/{help → cli/help}/pro/configsets.md +0 -0
- data/lib/lono/{help → cli/help}/script/build.md +0 -0
- data/lib/lono/{help → cli/help}/script/upload.md +0 -0
- data/lib/lono/{help → cli/help}/seed.md +2 -2
- data/lib/lono/cli/help/summary.md +33 -0
- data/lib/lono/{help → cli/help}/template/bashify.md +0 -0
- data/lib/lono/cli/help/template/generate.md +7 -0
- data/lib/lono/{help → cli/help}/template.md +0 -0
- data/lib/lono/cli/help/up.md +30 -0
- data/lib/lono/{help → cli/help}/user_data.md +3 -3
- data/lib/lono/cli/help.rb +56 -0
- data/lib/lono/cli/list.rb +28 -0
- data/lib/lono/cli/new/blueprint.rb +33 -0
- data/lib/lono/cli/new/concerns.rb +16 -0
- data/lib/lono/{configset/new.rb → cli/new/configset.rb} +2 -9
- data/lib/lono/{extension/new.rb → cli/new/extension.rb} +2 -10
- data/lib/lono/cli/new/helper.rb +32 -0
- data/lib/lono/cli/new/project.rb +77 -0
- data/lib/lono/cli/new/sequence.rb +51 -0
- data/lib/lono/cli/new/shim.rb +59 -0
- data/lib/lono/cli/new/test/blueprint.rb +23 -0
- data/lib/lono/cli/new/test/sequence.rb +10 -0
- data/lib/lono/cli/new/test.rb +8 -0
- data/lib/lono/cli/new.rb +31 -0
- data/lib/lono/{opts.rb → cli/opts.rb} +9 -12
- data/lib/lono/{s3.rb → cli/s3.rb} +9 -7
- data/lib/lono/cli/script/base.rb +5 -0
- data/lib/lono/cli/script/build.rb +72 -0
- data/lib/lono/cli/script/upload.rb +49 -0
- data/lib/lono/{script.rb → cli/script.rb} +2 -2
- data/lib/lono/cli/seed.rb +9 -0
- data/lib/lono/cli/test.rb +35 -0
- data/lib/lono/cli.rb +80 -109
- data/lib/lono/command.rb +27 -0
- data/lib/lono/configset/{generator.rb → builder.rb} +9 -7
- data/lib/lono/configset/combiner.rb +8 -6
- data/lib/lono/configset/evaluate_file.rb +1 -1
- data/lib/lono/configset/meta.rb +1 -1
- data/lib/lono/configset/s3_file/build.rb +5 -4
- data/lib/lono/configset/s3_file/item.rb +1 -1
- data/lib/lono/configset/s3_file/upload.rb +2 -2
- data/lib/lono/configset/strategy/base.rb +6 -6
- data/lib/lono/configset/strategy/helpers/dsl/core.rb +1 -1
- data/lib/lono/core.rb +25 -54
- data/lib/lono/extensions/dsl.rb +2 -5
- data/lib/lono/extensions/loader.rb +1 -12
- data/lib/lono/extensions.rb +2 -2
- data/lib/lono/importer/base.rb +5 -5
- data/lib/lono/importer/download.rb +7 -7
- data/lib/lono/importer/dsl.rb +3 -3
- data/lib/lono/importer/service/coder.rb +10 -10
- data/lib/lono/importer.rb +1 -10
- data/lib/lono/inspector/base.rb +7 -7
- data/lib/lono/inspector/summary.rb +19 -17
- data/lib/lono/layering/layer.rb +126 -0
- data/lib/lono/layering.rb +13 -55
- data/lib/lono/logger/formatter.rb +13 -0
- data/lib/lono/logger.rb +33 -0
- data/lib/lono/lookup.rb +12 -0
- data/lib/lono/names.rb +50 -0
- data/lib/lono/plugin/meta.rb +30 -0
- data/lib/lono/plugin/tester.rb +13 -0
- data/lib/lono/plugin.rb +10 -0
- data/lib/lono/s3/aws_setup.rb +4 -3
- data/lib/lono/s3/bucket.rb +19 -19
- data/lib/lono/s3/uploader.rb +10 -12
- data/lib/lono/script/base.rb +3 -3
- data/lib/lono/script/build.rb +11 -12
- data/lib/lono/script/upload.rb +7 -7
- data/lib/lono/{seed → seeder}/service_role.rb +1 -1
- data/lib/lono/{seed/base.rb → seeder.rb} +21 -36
- data/lib/lono/user_data.rb +8 -13
- data/lib/lono/utils/context.rb +15 -0
- data/lib/lono/utils/item/zip.rb +5 -5
- data/lib/lono/utils/logging.rb +7 -0
- data/lib/lono/utils/{pretty_time.rb → pretty.rb} +6 -2
- data/lib/lono/utils/quit.rb +7 -0
- data/lib/lono/utils/rsync.rb +4 -2
- data/lib/lono/utils/sure.rb +4 -4
- data/lib/lono/version.rb +1 -1
- data/lib/lono.rb +7 -12
- data/lib/templates/blueprint/template.rb +2 -0
- data/lib/templates/configset/{lib/configset.rb → configset.rb} +0 -0
- data/lib/templates/examples/blueprint/template.rb +9 -0
- data/lib/templates/helper/%underscore_name%_helper.rb.tt +6 -0
- data/lib/templates/{skeleton → project}/.gitignore +1 -2
- data/lib/templates/project/Gemfile.tt +11 -0
- data/lib/templates/project/README.md +9 -0
- data/lib/templates/project/config/app.rb +3 -0
- data/lib/templates/shim/lono +7 -0
- data/lono.gemspec +51 -44
- metadata +246 -269
- data/.circleci/README.md +0 -3
- data/.circleci/config.yml +0 -58
- data/.cody/acceptance.sh +0 -49
- data/.cody/buildspec.yml +0 -9
- data/.cody/demo.rb +0 -38
- data/.cody/project.rb +0 -6
- data/.gitmodules +0 -3
- data/lib/lono/abstract_base.rb +0 -25
- data/lib/lono/aws_services/stack.rb +0 -41
- data/lib/lono/aws_services/stack_set.rb +0 -41
- data/lib/lono/blueprint/configset/loader.rb +0 -7
- data/lib/lono/blueprint/helper.rb +0 -24
- data/lib/lono/blueprint/meta.rb +0 -30
- data/lib/lono/blueprint/new.rb +0 -127
- data/lib/lono/blueprint/root.rb +0 -25
- data/lib/lono/cfn/create.rb +0 -41
- data/lib/lono/cfn/opts.rb +0 -88
- data/lib/lono/cfn/preview/changeset.rb +0 -168
- data/lib/lono/cfn/preview/codediff.rb +0 -41
- data/lib/lono/cfn/preview/diff_viewer.rb +0 -23
- data/lib/lono/cfn/rollback.rb +0 -26
- data/lib/lono/cfn/update.rb +0 -71
- data/lib/lono/cfn.rb +0 -75
- data/lib/lono/clean.rb +0 -14
- data/lib/lono/configset/list.rb +0 -67
- data/lib/lono/configset/preparer.rb +0 -44
- data/lib/lono/configset/register/base.rb +0 -122
- data/lib/lono/configset/register/blueprint.rb +0 -16
- data/lib/lono/configset/register/dsl.rb +0 -14
- data/lib/lono/configset/register/project.rb +0 -13
- data/lib/lono/configset/resolver.rb +0 -47
- data/lib/lono/configset.rb +0 -16
- data/lib/lono/conventions.rb +0 -23
- data/lib/lono/core/config.rb +0 -22
- data/lib/lono/default/settings.yml +0 -21
- data/lib/lono/ext/bundler.rb +0 -7
- data/lib/lono/extension/helper.rb +0 -13
- data/lib/lono/extension/list.rb +0 -40
- data/lib/lono/extension.rb +0 -9
- data/lib/lono/extensions/preparer.rb +0 -26
- data/lib/lono/extensions/register.rb +0 -15
- data/lib/lono/file_uploader.rb +0 -21
- data/lib/lono/finder/base.rb +0 -152
- data/lib/lono/finder/blueprint/configset.rb +0 -17
- data/lib/lono/finder/blueprint.rb +0 -11
- data/lib/lono/finder/configset.rb +0 -11
- data/lib/lono/finder/extension.rb +0 -11
- data/lib/lono/generate.rb +0 -111
- data/lib/lono/help/cfn/create.md +0 -26
- data/lib/lono/help/cfn/delete.md +0 -13
- data/lib/lono/help/cfn/deploy.md +0 -21
- data/lib/lono/help/cfn/download.md +0 -3
- data/lib/lono/help/cfn/update.md +0 -49
- data/lib/lono/help/cfn.md +0 -7
- data/lib/lono/help/new.md +0 -57
- data/lib/lono/help/param.md +0 -6
- data/lib/lono/help/set_instances/delete.md +0 -21
- data/lib/lono/help/set_instances/deploy.md +0 -31
- data/lib/lono/help/set_instances/list.md +0 -14
- data/lib/lono/help/set_instances/status.md +0 -15
- data/lib/lono/help/set_instances/sync.md +0 -92
- data/lib/lono/help/sets/delete.md +0 -8
- data/lib/lono/help/sets/deploy.md +0 -76
- data/lib/lono/help/sets/status.md +0 -23
- data/lib/lono/help/summary.md +0 -33
- data/lib/lono/help/template/generate.md +0 -7
- data/lib/lono/help/upgrade.md +0 -1
- data/lib/lono/help/xgraph.md +0 -16
- data/lib/lono/help.rb +0 -15
- data/lib/lono/importer/erb.rb +0 -31
- data/lib/lono/inspector/graph.rb +0 -125
- data/lib/lono/jade/circular.rb +0 -26
- data/lib/lono/jade/materializer/final.rb +0 -10
- data/lib/lono/jade/materializer/gems_builder.rb +0 -81
- data/lib/lono/jade/materializer/source.rb +0 -54
- data/lib/lono/jade/materializer.rb +0 -15
- data/lib/lono/jade/registry.rb +0 -64
- data/lib/lono/jade.rb +0 -110
- data/lib/lono/jadespec.rb +0 -68
- data/lib/lono/new/helper.rb +0 -15
- data/lib/lono/new.rb +0 -95
- data/lib/lono/param.rb +0 -14
- data/lib/lono/pro/base.rb +0 -16
- data/lib/lono/pro/repo.rb +0 -28
- data/lib/lono/pro.rb +0 -15
- data/lib/lono/project_checker.rb +0 -35
- data/lib/lono/registration/base.rb +0 -37
- data/lib/lono/registration/check.rb +0 -15
- data/lib/lono/registration/temp.rb +0 -53
- data/lib/lono/registration/user.rb +0 -60
- data/lib/lono/seed.rb +0 -39
- data/lib/lono/sequence.rb +0 -35
- data/lib/lono/set_instances/base.rb +0 -30
- data/lib/lono/set_instances/changeable.rb +0 -53
- data/lib/lono/set_instances/create.rb +0 -7
- data/lib/lono/set_instances/delete.rb +0 -47
- data/lib/lono/set_instances/deploy.rb +0 -52
- data/lib/lono/set_instances/list.rb +0 -13
- data/lib/lono/set_instances/opts.rb +0 -37
- data/lib/lono/set_instances/status.rb +0 -12
- data/lib/lono/set_instances/sync.rb +0 -181
- data/lib/lono/set_instances/update.rb +0 -15
- data/lib/lono/set_instances.rb +0 -54
- data/lib/lono/sets/base.rb +0 -50
- data/lib/lono/sets/create.rb +0 -27
- data/lib/lono/sets/delete.rb +0 -43
- data/lib/lono/sets/deploy.rb +0 -11
- data/lib/lono/sets/list.rb +0 -35
- data/lib/lono/sets/opts.rb +0 -18
- data/lib/lono/sets/preview/codediff.rb +0 -35
- data/lib/lono/sets/preview/param.rb +0 -32
- data/lib/lono/sets/status/instance/base.rb +0 -120
- data/lib/lono/sets/status/instance/completed.rb +0 -35
- data/lib/lono/sets/status/instance/deleted.rb +0 -32
- data/lib/lono/sets/status/instance/show.rb +0 -7
- data/lib/lono/sets/status/instance.rb +0 -20
- data/lib/lono/sets/status/instances.rb +0 -136
- data/lib/lono/sets/status.rb +0 -128
- data/lib/lono/sets/summarize.rb +0 -22
- data/lib/lono/sets/time_spent.rb +0 -11
- data/lib/lono/sets/update.rb +0 -74
- data/lib/lono/sets/waiter.rb +0 -23
- data/lib/lono/sets.rb +0 -34
- data/lib/lono/setting.rb +0 -75
- data/lib/lono/template/aws_service.rb +0 -20
- data/lib/lono/template/bashify.rb +0 -39
- data/lib/lono/template/context/loader.rb +0 -52
- data/lib/lono/template/generator.rb +0 -23
- data/lib/lono/template/helper.rb +0 -152
- data/lib/lono/template/strategy/base.rb +0 -4
- data/lib/lono/template/strategy/common/helpers.rb +0 -44
- data/lib/lono/template/strategy/dsl/builder/section/base.rb +0 -30
- data/lib/lono/template/strategy/dsl/builder.rb +0 -59
- data/lib/lono/template/strategy/dsl.rb +0 -14
- data/lib/lono/template/strategy/erb.rb +0 -82
- data/lib/lono/template/strategy/source.rb +0 -8
- data/lib/lono/template/template.rb +0 -54
- data/lib/lono/template/util.rb +0 -8
- data/lib/lono/template.rb +0 -24
- data/lib/lono/upgrade.rb +0 -20
- data/lib/lono/utils/generators/tree.rb +0 -18
- data/lib/templates/blueprint/%blueprint_name%.gemspec.tt +0 -45
- data/lib/templates/blueprint/.gitignore +0 -11
- data/lib/templates/blueprint/CHANGELOG.md +0 -7
- data/lib/templates/blueprint/Gemfile +0 -4
- data/lib/templates/blueprint/README.md.tt +0 -33
- data/lib/templates/blueprint/Rakefile.tt +0 -9
- data/lib/templates/blueprint/seed/configs.rb +0 -28
- data/lib/templates/blueprint_types/dsl/app/templates/%blueprint_name%.rb +0 -36
- data/lib/templates/blueprint_types/dsl/app/user_data/bootstrap.sh +0 -2
- data/lib/templates/blueprint_types/erb/app/definitions/base.rb.tt +0 -1
- data/lib/templates/blueprint_types/erb/app/templates/%blueprint_name%.yml +0 -67
- data/lib/templates/configset/%configset_name%.gemspec.tt +0 -42
- data/lib/templates/configset/.gitignore +0 -10
- data/lib/templates/configset/CHANGELOG.md +0 -7
- data/lib/templates/configset/Gemfile +0 -4
- data/lib/templates/configset/README.md.tt +0 -3
- data/lib/templates/configset/Rakefile.tt +0 -9
- data/lib/templates/extension/%extension_name%.gemspec.tt +0 -46
- data/lib/templates/extension/.gitignore +0 -11
- data/lib/templates/extension/.rspec +0 -3
- data/lib/templates/extension/CHANGELOG.md +0 -7
- data/lib/templates/extension/Gemfile.tt +0 -4
- data/lib/templates/extension/Rakefile.tt +0 -9
- data/lib/templates/extension/spec/spec_helper.rb.tt +0 -29
- data/lib/templates/skeleton/Gemfile +0 -3
- data/lib/templates/skeleton/README.md +0 -58
- data/lib/templates/skeleton/configs/settings.yml +0 -13
- data/vendor/cfn-status/CHANGELOG.md +0 -14
- data/vendor/cfn-status/Gemfile +0 -4
- data/vendor/cfn-status/Gemfile.lock +0 -49
- data/vendor/cfn-status/LICENSE.txt +0 -21
- data/vendor/cfn-status/README.md +0 -58
- data/vendor/cfn-status/Rakefile +0 -6
- data/vendor/cfn-status/bin/console +0 -14
- data/vendor/cfn-status/bin/setup +0 -8
- data/vendor/cfn-status/cfn-status.gemspec +0 -30
- data/vendor/cfn-status/lib/cfn-status.rb +0 -1
- data/vendor/cfn-status/lib/cfn_status/aws_service.rb +0 -51
- data/vendor/cfn-status/lib/cfn_status/version.rb +0 -3
- data/vendor/cfn-status/lib/cfn_status.rb +0 -245
- data/vendor/cfn-status/spec/fixtures/cfn/pages/fresh/describe_stack_events-1.json +0 -1103
- data/vendor/cfn-status/spec/fixtures/cfn/pages/fresh/describe_stack_events-2.json +0 -1104
- data/vendor/cfn-status/spec/fixtures/cfn/pages/fresh/describe_stack_events-3.json +0 -1103
- data/vendor/cfn-status/spec/fixtures/cfn/pages/updating/describe_stack_events-1.json +0 -1103
- data/vendor/cfn-status/spec/fixtures/cfn/pages/updating/describe_stack_events-2.json +0 -1104
- data/vendor/cfn-status/spec/fixtures/cfn/pages/updating/describe_stack_events-3.json +0 -1103
- data/vendor/cfn-status/spec/fixtures/cfn/stack-events-complete.json +0 -1080
- data/vendor/cfn-status/spec/fixtures/cfn/stack-events-in-progress.json +0 -1080
- data/vendor/cfn-status/spec/fixtures/cfn/stack-events-update-rollback-complete.json +0 -1086
- data/vendor/cfn-status/spec/lib/cfn_status_spec.rb +0 -153
- data/vendor/cfn-status/spec/spec_helper.rb +0 -14
@@ -0,0 +1,33 @@
|
|
1
|
+
module Lono::Cfn
|
2
|
+
class Plan < Base
|
3
|
+
def run
|
4
|
+
if stack_exists?(@stack)
|
5
|
+
for_update
|
6
|
+
else
|
7
|
+
for_create
|
8
|
+
end
|
9
|
+
end
|
10
|
+
|
11
|
+
def for_update
|
12
|
+
# Allow passing down of the build object from Cfn::Deploy so build.all only runs once.
|
13
|
+
# Fallback to creating new build object but still pass one build object instance down.
|
14
|
+
@options[:build] ||= build
|
15
|
+
if @options[:iam] == true
|
16
|
+
@options[:iam] = Lono::Cfn::Deploy::Iam.new(@options)
|
17
|
+
end
|
18
|
+
Template.new(@options).run
|
19
|
+
Param.new(@options).run
|
20
|
+
changeset = Changeset.new(@options)
|
21
|
+
changeset.create
|
22
|
+
changeset # return changeset so it can be executed
|
23
|
+
end
|
24
|
+
|
25
|
+
def for_create
|
26
|
+
New.new(@options).run
|
27
|
+
end
|
28
|
+
|
29
|
+
def for_delete
|
30
|
+
Delete.new(@options).run
|
31
|
+
end
|
32
|
+
end
|
33
|
+
end
|
@@ -0,0 +1,30 @@
|
|
1
|
+
module Lono::Cfn
|
2
|
+
class Show < Base
|
3
|
+
include Plan::Concerns
|
4
|
+
|
5
|
+
def run
|
6
|
+
logger.info "Info for stack: #{@stack.color(:green)}"
|
7
|
+
logger.info "Resources:".color(:green)
|
8
|
+
print
|
9
|
+
Output.new(@options).run
|
10
|
+
end
|
11
|
+
|
12
|
+
def print
|
13
|
+
summary.print(resource_types)
|
14
|
+
end
|
15
|
+
|
16
|
+
def resource_types
|
17
|
+
resources = find_stack_resources(@stack)
|
18
|
+
unless resources
|
19
|
+
logger.info "ERROR: Stack #{@stack} not found".color(:red)
|
20
|
+
exit 1
|
21
|
+
end
|
22
|
+
|
23
|
+
types = Hash.new(0)
|
24
|
+
resources.each do |resource|
|
25
|
+
types[resource.resource_type] += 1
|
26
|
+
end
|
27
|
+
types
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
data/lib/lono/cfn/status.rb
CHANGED
@@ -0,0 +1,17 @@
|
|
1
|
+
class Lono::CLI
|
2
|
+
class Abstract
|
3
|
+
extend Memoist
|
4
|
+
include Lono::Utils::Context
|
5
|
+
include Lono::Utils::Logging
|
6
|
+
include Lono::Utils::Pretty
|
7
|
+
|
8
|
+
def initialize(options={})
|
9
|
+
reinitialize(options)
|
10
|
+
end
|
11
|
+
|
12
|
+
# Hack so that we can use include Thor::Base
|
13
|
+
def reinitialize(options)
|
14
|
+
@options = options
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
@@ -0,0 +1,101 @@
|
|
1
|
+
class Lono::CLI
|
2
|
+
class Build < Base
|
3
|
+
delegate :param_path, to: :param_builder
|
4
|
+
|
5
|
+
# Use class variable to cache this only runs once across all classes. base.rb, diff.rb, preview.rb
|
6
|
+
def all
|
7
|
+
ensure_s3_bucket_exist unless build_only?
|
8
|
+
pre_build
|
9
|
+
build_template # build with some placeholders for build_files IE: file://app/files/my.rb
|
10
|
+
post_build
|
11
|
+
upload unless build_only?
|
12
|
+
|
13
|
+
parameters = param_builder.build # Writes the json file in CamelCase keys format
|
14
|
+
logger.info "" # newline
|
15
|
+
parameters
|
16
|
+
end
|
17
|
+
memoize :all
|
18
|
+
|
19
|
+
def parameters
|
20
|
+
all
|
21
|
+
end
|
22
|
+
|
23
|
+
def build_only?
|
24
|
+
ENV['LONO_BUILD_ONLY'] || @options[:build_only]
|
25
|
+
end
|
26
|
+
|
27
|
+
def pre_build
|
28
|
+
build_scripts
|
29
|
+
end
|
30
|
+
|
31
|
+
def post_build
|
32
|
+
return if @options[:source]
|
33
|
+
build_files # builds app/files to output/BLUEPRINT/files
|
34
|
+
post_process_template
|
35
|
+
end
|
36
|
+
|
37
|
+
def ensure_s3_bucket_exist
|
38
|
+
bucket = Lono::S3::Bucket.new
|
39
|
+
return if bucket.exist?
|
40
|
+
bucket.deploy
|
41
|
+
end
|
42
|
+
|
43
|
+
def build_scripts
|
44
|
+
Lono::Script::Build.new(@options).run
|
45
|
+
end
|
46
|
+
|
47
|
+
def build_files
|
48
|
+
Lono::AppFile::Build.new(@options).run
|
49
|
+
Lono::Configset::S3File::Build.new(@options).run # copies files to the output folder
|
50
|
+
end
|
51
|
+
|
52
|
+
def build_template
|
53
|
+
template_builder.run
|
54
|
+
inject_configsets
|
55
|
+
end
|
56
|
+
|
57
|
+
def inject_configsets
|
58
|
+
# The inject_configsets reads it back from disk. Leaving as-is instead of reading all in memory in case there's a reason.
|
59
|
+
# TODO Lono::Builder::Template::ConfigsetInjector.new(@options).run
|
60
|
+
end
|
61
|
+
|
62
|
+
def post_process_template
|
63
|
+
# support for file://app/files/lambda_layer replacement
|
64
|
+
# TODO: Lono::Builder::Template::PostProcessor.new(@options).run
|
65
|
+
end
|
66
|
+
|
67
|
+
def upload
|
68
|
+
upload_files
|
69
|
+
upload_scripts
|
70
|
+
upload_templates
|
71
|
+
end
|
72
|
+
|
73
|
+
def upload_templates
|
74
|
+
Lono::Builder::Template::Upload.new(@options).run
|
75
|
+
end
|
76
|
+
|
77
|
+
def upload_scripts
|
78
|
+
Lono::Script::Upload.new(@options).run
|
79
|
+
end
|
80
|
+
|
81
|
+
def upload_files
|
82
|
+
Lono::AppFile::Upload.new(@options).upload
|
83
|
+
Lono::Configset::S3File::Upload.new(@options).upload
|
84
|
+
end
|
85
|
+
|
86
|
+
def param_builder
|
87
|
+
o = {
|
88
|
+
regenerate: true,
|
89
|
+
allow_not_exists: true,
|
90
|
+
}.merge(@options)
|
91
|
+
o = HashWithIndifferentAccess.new(o)
|
92
|
+
Lono::Builder::Param.new(o)
|
93
|
+
end
|
94
|
+
memoize :param_builder
|
95
|
+
|
96
|
+
def template_builder
|
97
|
+
Lono::Builder::Template.new(@options) # write templates to disk
|
98
|
+
end
|
99
|
+
memoize :template_builder
|
100
|
+
end
|
101
|
+
end
|
@@ -0,0 +1,21 @@
|
|
1
|
+
class Lono::CLI
|
2
|
+
class Bundle < Abstract
|
3
|
+
def run
|
4
|
+
Lono::Bundler::CLI.start(args)
|
5
|
+
end
|
6
|
+
|
7
|
+
# Allows bundle to be called without install. So both work:
|
8
|
+
#
|
9
|
+
# lono bundle
|
10
|
+
# lono bundle install
|
11
|
+
#
|
12
|
+
def args
|
13
|
+
args = @options[:args]
|
14
|
+
if args.empty? or args.first.include?('--')
|
15
|
+
args.unshift("install")
|
16
|
+
end
|
17
|
+
args = ["bundle"] + args
|
18
|
+
args
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
@@ -0,0 +1,59 @@
|
|
1
|
+
class Lono::CLI::Cfn
|
2
|
+
class Opts < Lono::CLI::Opts
|
3
|
+
def create
|
4
|
+
base_options
|
5
|
+
wait_options
|
6
|
+
end
|
7
|
+
|
8
|
+
def update
|
9
|
+
base_options
|
10
|
+
wait_options
|
11
|
+
end
|
12
|
+
|
13
|
+
def deploy
|
14
|
+
update
|
15
|
+
end
|
16
|
+
|
17
|
+
def delete
|
18
|
+
wait_options
|
19
|
+
end
|
20
|
+
|
21
|
+
def cancel
|
22
|
+
wait_options
|
23
|
+
end
|
24
|
+
|
25
|
+
def preview
|
26
|
+
base_options
|
27
|
+
with_cli_scope do
|
28
|
+
option :keep, type: :boolean, desc: "keep the changeset instead of deleting it afterwards"
|
29
|
+
end
|
30
|
+
end
|
31
|
+
|
32
|
+
def download
|
33
|
+
base_options
|
34
|
+
with_cli_scope do
|
35
|
+
option :name, desc: "Name you want to save the template as. Default: existing stack name."
|
36
|
+
option :source, desc: "url or path to file with template"
|
37
|
+
end
|
38
|
+
end
|
39
|
+
|
40
|
+
# Lono::Cfn and Lono::Sets
|
41
|
+
def base_options(rollback: true)
|
42
|
+
with_cli_scope do
|
43
|
+
if rollback
|
44
|
+
option :rollback, type: :boolean, desc: "rollback" # default: nil means CloudFormation default which is true
|
45
|
+
end
|
46
|
+
# common to Lono::Cfn and Lono::Sets
|
47
|
+
option :capabilities, type: :array, desc: "iam capabilities. Ex: CAPABILITY_IAM, CAPABILITY_NAMED_IAM"
|
48
|
+
option :iam, type: :boolean, desc: "Shortcut for common IAM capabilities: CAPABILITY_IAM, CAPABILITY_NAMED_IAM"
|
49
|
+
end
|
50
|
+
end
|
51
|
+
|
52
|
+
def wait_options
|
53
|
+
with_cli_scope do
|
54
|
+
option :wait, type: :boolean, desc: "Wait for stack operation to complete.", default: true
|
55
|
+
option :yes, aliases: :y, type: :boolean, desc: "Skip are you sure prompt" # moved to base but used by commands like `lono down` also. Just keep here.
|
56
|
+
end
|
57
|
+
end
|
58
|
+
end
|
59
|
+
end
|
data/lib/lono/cli/cfn.rb
ADDED
@@ -0,0 +1,19 @@
|
|
1
|
+
class Lono::CLI
|
2
|
+
class Cfn < Lono::Command
|
3
|
+
opts = Lono::CLI::Cfn::Opts.new(self)
|
4
|
+
|
5
|
+
desc "cancel BLUEPRINT", "Cancel a CloudFormation blueprint."
|
6
|
+
long_desc Help.text("cfn/cancel")
|
7
|
+
opts.cancel
|
8
|
+
def cancel(blueprint)
|
9
|
+
Lono::Cfn::Cancel.new(options.merge(blueprint: blueprint)).run
|
10
|
+
end
|
11
|
+
|
12
|
+
desc "download BLUEPRINT", "Download CloudFormation template from existing blueprint."
|
13
|
+
long_desc Help.text("cfn/download")
|
14
|
+
opts.download
|
15
|
+
def download(blueprint)
|
16
|
+
Lono::Cfn::Download.new(options.merge(blueprint: blueprint)).run
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
@@ -0,0 +1,22 @@
|
|
1
|
+
require "fileutils"
|
2
|
+
|
3
|
+
class Lono::CLI
|
4
|
+
class Clean
|
5
|
+
include Lono::Utils::Logging
|
6
|
+
include Lono::Utils::Sure
|
7
|
+
|
8
|
+
attr_reader :options
|
9
|
+
def initialize(options={})
|
10
|
+
@options = options
|
11
|
+
end
|
12
|
+
|
13
|
+
def run
|
14
|
+
folders = %w[output tmp]
|
15
|
+
sure?("Will remove folders: #{folders.join(' ')}")
|
16
|
+
folders.each do |folder|
|
17
|
+
FileUtils.rm_rf("#{Lono.root}/#{folder}")
|
18
|
+
end
|
19
|
+
logger.info "Removed folders: #{folders.join(' ')}"
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
@@ -1,4 +1,4 @@
|
|
1
|
-
|
1
|
+
class Lono::CLI
|
2
2
|
class Code < Lono::Command
|
3
3
|
desc "import SOURCE", "Imports CloudFormation template and converts it to Ruby code."
|
4
4
|
long_desc Help.text("code/import")
|
@@ -12,7 +12,7 @@ module Lono
|
|
12
12
|
Importer.new(options.merge(source: source)).run
|
13
13
|
end
|
14
14
|
|
15
|
-
desc "convert SOURCE", "Converts snippet of JSON or YAML CloudFormation
|
15
|
+
desc "convert SOURCE", "Converts snippet of JSON or YAML CloudFormation template to Ruby code."
|
16
16
|
long_desc Help.text("code/convert")
|
17
17
|
option :casing, default: "as-is", desc: "Controls casing of logical ids. IE: as-is, camelcase or underscore"
|
18
18
|
def convert(source)
|
@@ -19,10 +19,10 @@
|
|
19
19
|
create blueprints/demo/app/user_data/bootstrap.sh
|
20
20
|
exist blueprints/demo/app/templates
|
21
21
|
exist
|
22
|
-
create
|
23
|
-
create
|
24
|
-
create
|
25
|
-
create
|
22
|
+
create config/demo/params/development.txt
|
23
|
+
create config/demo/params/production.txt
|
24
|
+
create config/demo/variables/development.rb
|
25
|
+
create config/demo/variables/production.rb
|
26
26
|
=> Installing dependencies with: bundle install
|
27
27
|
Fetching gem metadata from https://rubygems.org/..........
|
28
28
|
...
|
@@ -2,16 +2,16 @@ Generates CloudFormation template, parameter files, and scripts in lono project
|
|
2
2
|
|
3
3
|
## Examples
|
4
4
|
|
5
|
-
lono
|
6
|
-
lono
|
5
|
+
lono build BLUEPRINT
|
6
|
+
lono build BLUEPRINT --clean
|
7
7
|
lono g BLUEPRINT --clean # shortcut
|
8
8
|
|
9
9
|
## Example Output
|
10
10
|
|
11
|
-
$ lono
|
12
|
-
|
13
|
-
|
11
|
+
$ lono build ec2
|
12
|
+
Building template, parameters, and scripts
|
13
|
+
Building template:
|
14
14
|
output/templates/ec2.yml
|
15
|
-
|
15
|
+
Building parameters:
|
16
16
|
output/params/ec2.json
|
17
17
|
$
|
File without changes
|
@@ -2,25 +2,26 @@
|
|
2
2
|
|
3
3
|
We'll make a change to the default InstanceType of a CloudFromation stack.
|
4
4
|
|
5
|
-
lono cfn
|
5
|
+
lono cfn plan demo
|
6
6
|
|
7
7
|
The output should look similiar to this:
|
8
8
|
|
9
|
-
|
10
|
-
|
9
|
+
Building CloudFormation source code diff...
|
10
|
+
=> colordiff /tmp/existing_cfn_template.yml output/templates/ec2.yml
|
11
11
|
14c14
|
12
12
|
< Default: t2.small
|
13
13
|
---
|
14
14
|
> Default: t2.micro
|
15
|
-
|
16
|
-
CloudFormation
|
15
|
+
Building CloudFormation Change Set for plan.....
|
16
|
+
CloudFormation plan for 'ec2' stack update. Changes:
|
17
17
|
Modify AWS::EC2::Instance: EC2Instance i-07e939db65120fb75
|
18
18
|
|
19
|
-
The
|
19
|
+
The plan includes colors:
|
20
20
|
|
21
21
|
<img src="/img/reference/lono-cfn-preview.png" alt="Stack Update" class="doc-photo">
|
22
22
|
|
23
|
-
There are
|
23
|
+
There are several types of "diffs" in the plan.
|
24
24
|
|
25
25
|
1. Source code diff of the templates. This is generated by downloading the current CloudFormation template and comparing it with the locally generated one using `colordiff`.
|
26
|
-
2.
|
26
|
+
2. Param diff.
|
27
|
+
3. CloudFormation Change Set list of changes. This is generated using [AWS CloudFormation Change Set](https://medium.com/boltops/a-simple-introduction-to-cloudformation-part-4-change-sets-dry-run-mode-c14e41dfeab7) feature.
|
File without changes
|
File without changes
|
@@ -21,8 +21,8 @@
|
|
21
21
|
create blueprints/ec2/seed/configs.rb
|
22
22
|
create blueprints/ec2/app/templates
|
23
23
|
create blueprints/ec2/app/templates/ec2.rb
|
24
|
-
create
|
25
|
-
create
|
24
|
+
create config/ec2/params/development.txt
|
25
|
+
create config/ec2/params/production.txt
|
26
26
|
================================================================
|
27
27
|
Congrats You have successfully imported a lono blueprint.
|
28
28
|
|
@@ -8,7 +8,7 @@ Prints words for TAB auto-completion.
|
|
8
8
|
|
9
9
|
lono completion
|
10
10
|
lono completion cfn
|
11
|
-
lono completion
|
11
|
+
lono completion up
|
12
12
|
|
13
13
|
To enable, TAB auto-completion add the following to your profile:
|
14
14
|
|
@@ -18,5 +18,5 @@ Auto-completion example usage:
|
|
18
18
|
|
19
19
|
lono [TAB]
|
20
20
|
lono cfn [TAB]
|
21
|
-
lono
|
22
|
-
lono
|
21
|
+
lono up [TAB]
|
22
|
+
lono up --[TAB]
|
File without changes
|
File without changes
|
@@ -0,0 +1,13 @@
|
|
1
|
+
## Examples
|
2
|
+
|
3
|
+
$ lono down demo
|
4
|
+
Are you sure you want to delete the demo-dev stack? (y/N)
|
5
|
+
y
|
6
|
+
Deleted demo-dev stack.
|
7
|
+
$
|
8
|
+
|
9
|
+
Lono prompts you with an "Are you sure?" message before the stack gets deleted. If you would like to bypass the prompt, you can use the `-y` flag.
|
10
|
+
|
11
|
+
$ lono down demo -y
|
12
|
+
Deleted demo-dev stack.
|
13
|
+
$
|
@@ -0,0 +1,34 @@
|
|
1
|
+
## Example
|
2
|
+
|
3
|
+
$ lono new project infra
|
4
|
+
=> Creating new project called infra.
|
5
|
+
create infra
|
6
|
+
create infra/.gitignore
|
7
|
+
create infra/Gemfile
|
8
|
+
create infra/README.md
|
9
|
+
create infra/config/app.rb
|
10
|
+
=> Initialize git repo
|
11
|
+
run git init from "."
|
12
|
+
Initialized empty Git repository in /home/ec2-user/environment/infra/.git/
|
13
|
+
=> Installing dependencies with: bundle install
|
14
|
+
Resolving dependencies...Fetching gem metadata from https://rubygems.org/.......
|
15
|
+
............................
|
16
|
+
Using concurrent-ruby 1.1.9
|
17
|
+
...
|
18
|
+
Bundle complete! 1 Gemfile dependency, 40 gems now installed.
|
19
|
+
Use `bundle info [gemname]` to see where a bundled gem is installed.
|
20
|
+
================================================================
|
21
|
+
Congrats 🎉 You have successfully created a lono project.
|
22
|
+
|
23
|
+
cd infra
|
24
|
+
|
25
|
+
To generate a new blueprint:
|
26
|
+
|
27
|
+
lono new blueprint demo --examples
|
28
|
+
|
29
|
+
To deploy:
|
30
|
+
|
31
|
+
lono up demo
|
32
|
+
|
33
|
+
More info: https://lono.cloud/
|
34
|
+
$
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -2,8 +2,8 @@
|
|
2
2
|
|
3
3
|
$ lono seed ecs-asg
|
4
4
|
Creating starter config files for ecs-asg
|
5
|
-
create
|
6
|
-
$ cat
|
5
|
+
create config/ecs-asg/params/development.txt
|
6
|
+
$ cat config/ecs-asg/params/development.txt
|
7
7
|
# Required parameters:
|
8
8
|
VpcId=vpc-111 # Find at vpc CloudFormation Outputs
|
9
9
|
Subnets=subnet-111,subnet-222,subnet-333 # Find at vpc CloudFormation Outputs
|
@@ -0,0 +1,33 @@
|
|
1
|
+
The `lono summary` command helps you quickly understand a CloudFormation template.
|
2
|
+
|
3
|
+
## Examples
|
4
|
+
|
5
|
+
$ bundle exec lono summary ec2
|
6
|
+
Building template
|
7
|
+
output/ec2/templates/ec2-old.yml
|
8
|
+
output/ec2/templates/ec2-new.yml
|
9
|
+
=> CloudFormation Template Summary for template ec2-new:
|
10
|
+
Required Parameters (0):
|
11
|
+
There are no required parameters.
|
12
|
+
Optional Parameters (3):
|
13
|
+
InstanceType (String) Default: t3.micro
|
14
|
+
Subnet (String) Default:
|
15
|
+
Vpc (String) Default:
|
16
|
+
Resources:
|
17
|
+
1 AWS::EC2::Instance
|
18
|
+
1 AWS::EC2::SecurityGroup
|
19
|
+
2 Total
|
20
|
+
=> CloudFormation Template Summary for template ec2-old:
|
21
|
+
Required Parameters (0):
|
22
|
+
There are no required parameters.
|
23
|
+
Optional Parameters (3):
|
24
|
+
InstanceType (String) Default: t3.micro
|
25
|
+
Subnet (String) Default:
|
26
|
+
Vpc (String) Default:
|
27
|
+
Resources:
|
28
|
+
1 AWS::EC2::Instance
|
29
|
+
1 AWS::EC2::SecurityGroup
|
30
|
+
2 Total
|
31
|
+
$
|
32
|
+
|
33
|
+
Blog Post also covers this: [lono summary Tutorial Introduction](https://blog.boltops.com/2017/09/18/lono-inspect-summary-tutorial-introduction)
|
File without changes
|
File without changes
|
@@ -0,0 +1,30 @@
|
|
1
|
+
## Examples
|
2
|
+
|
3
|
+
$ lono up demo
|
4
|
+
Deploying demo-dev stack
|
5
|
+
Building template
|
6
|
+
output/demo/template.yml
|
7
|
+
Uploading template
|
8
|
+
Not modified: output/demo/template.yml to s3://lono-bucket-12di8xz5sy72z/dev/output/demo/template.yml
|
9
|
+
Uploaded to s3.
|
10
|
+
Building parameters
|
11
|
+
output/demo/params.json
|
12
|
+
Going to create stack demo-dev with blueprint demo. (y/N) y
|
13
|
+
Parameters passed to create_stack:
|
14
|
+
---
|
15
|
+
disable_rollback: false
|
16
|
+
parameters:
|
17
|
+
- parameter_key: AccessControl
|
18
|
+
parameter_value: PublicRead
|
19
|
+
stack_name: demo-dev
|
20
|
+
template_url: https://lono-bucket-12di8xz5sy72z.s3.us-west-2.amazonaws.com/dev/output/demo/template.yml
|
21
|
+
Waiting for stack to complete
|
22
|
+
05:07:26AM CREATE_IN_PROGRESS AWS::CloudFormation::Stack demo-dev User Initiated
|
23
|
+
05:07:30AM CREATE_IN_PROGRESS AWS::S3::Bucket Bucket
|
24
|
+
05:07:31AM CREATE_IN_PROGRESS AWS::S3::Bucket Bucket Resource creation Initiated
|
25
|
+
05:07:52AM CREATE_COMPLETE AWS::S3::Bucket Bucket
|
26
|
+
05:07:53AM CREATE_COMPLETE AWS::CloudFormation::Stack demo-dev
|
27
|
+
Stack success status: CREATE_COMPLETE
|
28
|
+
Time took: 30s.
|
29
|
+
Create demo-dev stack.
|
30
|
+
$
|
@@ -16,12 +16,12 @@ Script:
|
|
16
16
|
Running `lono user_data bootstrap` produces:
|
17
17
|
|
18
18
|
$ lono user_data bootstrap
|
19
|
-
Detected
|
20
|
-
Tarballing
|
19
|
+
Detected scripts
|
20
|
+
Tarballing scripts folder to scripts.tgz
|
21
21
|
=> cd app && dot_clean .
|
22
22
|
=> cd app && tar -c scripts | gzip -n > scripts.tgz
|
23
23
|
Tarball created at output/scripts/scripts-93b8b29b.tgz
|
24
|
-
|
24
|
+
Building user_data for 'bootstrap' at ./app/user_data/bootstrap.sh
|
25
25
|
#!/bin/bash -exu
|
26
26
|
|
27
27
|
# Generated from the lono extract_scripts helper.
|