Class: AwsCftTools::Runbooks::Init

Inherits:
AwsCftTools::Runbook show all
Defined in:
lib/aws_cft_tools/runbooks/init.rb

Overview

Deploy - manage CloudFormation stack deployment

Examples:

% aws-cli init # create skeleton project in the current directory

Constant Summary collapse

DEFAULT_CONFIG =

The default project configuration file.

"---\n###\n# Values in this file override the defaults in aws-cft. Command line options override these values.\n#\n# This is a good place to put project- or account-wide defaults for teams using the templates in this\n# repo.\n###\n\n###\n# By default, we want as much detail as possible.\n#\n:verbose: true\n\n###\n# When different templates have nothing indicating their relative ordering, they are ordered based on the\n# directory/folder in which they appear ordered by this list.\n#\n:template_folder_priorities:\n  - vpcs\n  - networks\n  - security\n  - data-resources\n  - data-services\n  - applications\n"
TEMPLATE_ROLES =

The template role directories to build out when creating a project.

%w[applications data-resources data-services networks security vpcs].freeze
FILE_TYPES =

The different types of files used when managing templates and stacks.

%w[parameters templates].freeze

Instance Attribute Summary

Attributes inherited from AwsCftTools::Runbook

#client, #options

Instance Method Summary collapse

Methods inherited from AwsCftTools::Runbook

#_run, #checking, #debug, #detail, #doing, #initialize, #narrative, #operation

Constructor Details

This class inherits a constructor from AwsCftTools::Runbook

Instance Method Details

#runObject



52
53
54
55
56
# File 'lib/aws_cft_tools/runbooks/init.rb', line 52

def run
  ensure_project_directory
  ensure_cloudformation_directories
  ensure_config_file
end