Method: Jets::Cfn::Builder::Parent#build_child_resources

Defined in:
lib/jets/cfn/builder/parent.rb

#build_child_resourcesObject



53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
# File 'lib/jets/cfn/builder/parent.rb', line 53

def build_child_resources
  return unless full?

  add_one_lambda_controller if Jets.one_lambda_for_all_controllers? && Jets.config.mode != "job"
  for_each_path(:app) do |path|
    add_app_class_stack(path)
  end
  for_each_path(:shared) do |path|
    add_shared_resources(path)
  end

  return if Jets::Router.no_routes?
  for_each_path(:authorizers) do |path|
    add_authorizer_resources(path)
  end
  add_api_gateway
  add_api_resources
  add_api_methods
  add_api_deployment
  add_api_mapping
end