Sha256: 97163fa04efe027bc3e3f23d99bce2455aac04bfddc6c026b55c3934047f0aca
Contents?: true
Size: 658 Bytes
Versions: 2
Compression:
Stored size: 658 Bytes
Contents
# frozen_string_literal: true require_relative "qas_dock_gem/version" 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
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
qas_dock_gem-0.1.22 | lib/aws_services.rb |
qas_dock_gem-0.1.18 | lib/aws_services.rb |