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