Sha256: db142cf2d961da89fa0273734b0155a0673b96c822940521f01e85edd5363145
Contents?: true
Size: 751 Bytes
Versions: 2
Compression:
Stored size: 751 Bytes
Contents
# frozen_string_literal: true require_relative "qas_dock_gem/version" module QasDockGemAws class AwsServices def credentials_aws(access_key_id, secret_access_key_id, region) { access_key_id: access_key_id, secret_access_key: secret_access_key_id, region: region } end def init_secrets_manager(credentials) require "aws-sdk-secretsmanager" Aws::SecretsManager::Client.new(credentials) end def get_sm_secret_value(credentials, secret_name) secret = init_secrets_manager(credentials).get_secret_value(secret_id: "#{secret_name}") JSON.parse(secret.secret_string) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
qas_dock_gem-0.1.17 | lib/aws_services.rb |
qas_dock_gem-0.1.16 | lib/aws_services.rb |