Class: Jets::Resource::Lambda::GemLayer

Inherits:
LayerVersion show all
Defined in:
lib/jets/resource/lambda/gem_layer.rb

Instance Method Summary collapse

Methods inherited from LayerVersion

#definition, #layer_version_logical_id, #outputs, #s3_bucket

Methods inherited from Base

#replacements, #resource

Instance Method Details

#code_s3_keyObject



12
13
14
15
# File 'lib/jets/resource/lambda/gem_layer.rb', line 12

def code_s3_key
  checksum = Jets::Builders::Md5.checksums["stage/opt"]
  "jets/code/opt-#{checksum}.zip" # s3_key
end

#descriptionObject



3
4
5
# File 'lib/jets/resource/lambda/gem_layer.rb', line 3

def description
  "Jets Ruby Gems"
end

#layer_nameObject



7
8
9
10
# File 'lib/jets/resource/lambda/gem_layer.rb', line 7

def layer_name
  # Do not include the Jets.extra_env to group the layers in same app together
  "#{Jets.config.short_env}-#{Jets.config.project_name}-gems"
end