Sha256: 216e835afc9917e1ba94f7319ca4e76eb65e13c56518474cf73bdc98cd26d110

Contents?: true

Size: 620 Bytes

Versions: 16

Compression:

Stored size: 620 Bytes

Contents

module Jets::Resource::ChildStack
  class ApiGateway < Jets::Resource::Base
    def initialize(s3_bucket)
      @s3_bucket = s3_bucket
    end

    def definition
      {
        api_gateway: {
          type: "AWS::CloudFormation::Stack",
          properties: {
            template_url: template_url,
          }
        }
      }
    end

    def outputs
      {
        logical_id => "!Ref #{logical_id}",
      }
    end

    def template_url
      path = File.basename("#{Jets.config.project_namespace}-api-gateway.yml")
      "https://s3.amazonaws.com/#{@s3_bucket}/jets/cfn-templates/#{path}"
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
jets-0.8.18 lib/jets/resource/child_stack/api_gateway.rb
jets-0.8.17 lib/jets/resource/child_stack/api_gateway.rb
jets-0.8.15 lib/jets/resource/child_stack/api_gateway.rb
jets-0.8.14 lib/jets/resource/child_stack/api_gateway.rb
jets-0.8.13 lib/jets/resource/child_stack/api_gateway.rb
jets-0.8.12 lib/jets/resource/child_stack/api_gateway.rb
jets-0.8.11 lib/jets/resource/child_stack/api_gateway.rb
jets-0.8.10 lib/jets/resource/child_stack/api_gateway.rb
jets-0.8.9 lib/jets/resource/child_stack/api_gateway.rb
jets-0.8.8 lib/jets/resource/child_stack/api_gateway.rb
jets-0.8.6 lib/jets/resource/child_stack/api_gateway.rb
jets-0.8.5 lib/jets/resource/child_stack/api_gateway.rb
jets-0.8.4 lib/jets/resource/child_stack/api_gateway.rb
jets-0.8.3 lib/jets/resource/child_stack/api_gateway.rb
jets-0.8.2 lib/jets/resource/child_stack/api_gateway.rb
jets-0.8.1 lib/jets/resource/child_stack/api_gateway.rb