Sha256: dae6803de982a9a29c6dcd379db1af21d6fc011380272d9fcb85729f50574d05
Contents?: true
Size: 783 Bytes
Versions: 3
Compression:
Stored size: 783 Bytes
Contents
module QasDockGem module Aws 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 end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
qas_dock_gem-0.1.25 | lib/qas_dock_gem/services/aws_services.rb |
qas_dock_gem-0.1.24 | lib/qas_dock_gem/services/aws_services.rb |
qas_dock_gem-0.1.23 | lib/qas_dock_gem/services/aws_services.rb |