class Lono::Template::Context::SsmFetcher

Public Instance Methods

fetch_ssm_value(name) click to toggle source
# File lib/lono/template/context/ssm_fetcher.rb, line 11
def fetch_ssm_value(name)
  resp = ssm.get_parameter(name: name, with_decryption: true)
  resp.parameter.value
rescue Aws::SSM::Errors::ParameterNotFound
  'SSM-PARAM-NOT-FOUND'
end
get(name) click to toggle source
# File lib/lono/template/context/ssm_fetcher.rb, line 7
def get(name)
  fetch_ssm_value(name)
end
ssm() click to toggle source
# File lib/lono/template/context/ssm_fetcher.rb, line 18
def ssm
  Aws::SSM::Client.new
end